create_user.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <script>
  2. $(function () {
  3. $("[name='user_country']").select2({
  4. placeholder: "<?php _trans('country'); ?>",
  5. allowClear: true
  6. });
  7. });
  8. </script>
  9. <script src="<?php echo base_url(); ?>assets/core/js/zxcvbn.js"></script>
  10. <div class="container">
  11. <div class="install-panel">
  12. <h1 id="logo"><span>InvoicePlane</span></h1>
  13. <form method="post" action="<?php echo site_url($this->uri->uri_string()); ?>">
  14. <input type="hidden" name="_ip_csrf" value="<?= $this->security->get_csrf_hash() ?>">
  15. <input type="hidden" name="user_type" value="1">
  16. <legend><?php _trans('setup_create_user'); ?></legend>
  17. <?php echo $this->layout->load_view('layout/alerts'); ?>
  18. <p><?php _trans('setup_create_user_message'); ?></p>
  19. <div class="form-group">
  20. <label for="user_email">
  21. <?php _trans('email_address'); ?>
  22. </label>
  23. <input type="email" name="user_email" id="user_email" class="form-control"
  24. value="<?php echo $this->mdl_users->form_value('user_email', true); ?>">
  25. <span class="help-block"><?php _trans('setup_user_email_info'); ?></span>
  26. </div>
  27. <div class="form-group">
  28. <label for="user_name">
  29. <?php _trans('name'); ?>
  30. </label>
  31. <input type="text" name="user_name" id="user_name" class="form-control"
  32. value="<?php echo $this->mdl_users->form_value('user_name', true); ?>">
  33. <span class="help-block"><?php _trans('setup_user_name_info'); ?></span>
  34. </div>
  35. <div class="form-group">
  36. <label for="user_password">
  37. <?php _trans('password'); ?>
  38. </label>
  39. <input type="password" name="user_password" id="user_password"
  40. class="form-control passwordmeter-input">
  41. <div class="progress" style="height:3px;">
  42. <div class="progress-bar progress-bar-danger passmeter passmeter-1" style="width: 33%"></div>
  43. <div class="progress-bar progress-bar-warning passmeter passmeter-2" style="display: none; width: 33%"></div>
  44. <div class="progress-bar progress-bar-success passmeter passmeter-3" style="display: none; width: 34%"></div>
  45. </div>
  46. <span class="help-block"><?php _trans('setup_user_password_info'); ?></span>
  47. </div>
  48. <div class="form-group">
  49. <label for="user_passwordv">
  50. <?php _trans('verify_password'); ?>
  51. </label>
  52. <input type="password" name="user_passwordv" id="user_passwordv" class="form-control">
  53. <span class="help-block"><?php _trans('setup_user_password_verify_info'); ?></span>
  54. </div>
  55. <div class="form-group">
  56. <label for="user_language">
  57. <?php _trans('language'); ?>
  58. </label>
  59. <select name="user_language" id="user_language" class="form-control simple-select">
  60. <option value="system">
  61. <?php echo trans('use_system_language') ?>
  62. </option>
  63. <?php foreach ($languages as $language) { ?>
  64. <option value="<?php echo $language; ?>">
  65. <?php echo ucfirst($language); ?>
  66. </option>
  67. <?php } ?>
  68. </select>
  69. </div>
  70. <legend><?php _trans('address'); ?></legend>
  71. <p><?php _trans('setup_user_address_info'); ?></p>
  72. <div class="form-group">
  73. <label>
  74. <?php _trans('street_address'); ?>
  75. </label>
  76. <input type="text" name="user_address_1" id="user_address_1" class="form-control"
  77. value="<?php echo $this->mdl_users->form_value('user_address_1', true); ?>">
  78. </div>
  79. <div class="form-group">
  80. <label>
  81. <?php _trans('street_address_2'); ?>
  82. </label>
  83. <input type="text" name="user_address_2" id="user_address_2" class="form-control"
  84. value="<?php echo $this->mdl_users->form_value('user_address_2', true); ?>"
  85. placeholder="<?php _trans('optional'); ?>">
  86. </div>
  87. <div class="form-group">
  88. <label>
  89. <?php _trans('city'); ?>
  90. </label>
  91. <input type="text" name="user_city" id="user_city" class="form-control"
  92. value="<?php echo $this->mdl_users->form_value('user_city', true); ?>"
  93. placeholder="<?php _trans('optional'); ?>">
  94. </div>
  95. <div class="form-group">
  96. <label>
  97. <?php _trans('state'); ?>
  98. </label>
  99. <input type="text" name="user_state" id="user_state" class="form-control"
  100. value="<?php echo $this->mdl_users->form_value('user_state', true); ?>"
  101. placeholder="<?php _trans('optional'); ?>">
  102. </div>
  103. <div class="form-group">
  104. <label>
  105. <?php _trans('zip_code'); ?>
  106. </label>
  107. <input type="text" name="user_zip" id="user_zip" class="form-control"
  108. value="<?php echo $this->mdl_users->form_value('user_zip', true); ?>"
  109. placeholder="<?php _trans('optional'); ?>">
  110. </div>
  111. <div class="form-group">
  112. <label>
  113. <?php _trans('country'); ?>
  114. </label>
  115. <select name="user_country" class="form-control simple-select">
  116. <option value=""><?php _trans('none'); ?></option>
  117. <?php foreach ($countries as $cldr => $country) { ?>
  118. <option value="<?php echo $cldr; ?>"
  119. <?php check_select($this->mdl_users->form_value('user_country'), $cldr); ?>>
  120. <?php echo $country ?>
  121. </option>
  122. <?php } ?>
  123. </select>
  124. </div>
  125. <legend><?php _trans('setup_other_contact'); ?></legend>
  126. <p><?php _trans('setup_user_contact_info'); ?></p>
  127. <div class="form-group">
  128. <label>
  129. <?php _trans('phone'); ?>
  130. </label>
  131. <input type="text" name="user_phone" id="user_phone" class="form-control"
  132. value="<?php echo $this->mdl_users->form_value('user_phone', true); ?>"
  133. placeholder="<?php _trans('optional'); ?>">
  134. </div>
  135. <div class="form-group">
  136. <label>
  137. <?php _trans('fax'); ?>
  138. </label>
  139. <input type="text" name="user_fax" id="user_fax" class="form-control"
  140. value="<?php echo $this->mdl_users->form_value('user_fax', true); ?>"
  141. placeholder="<?php _trans('optional'); ?>">
  142. </div>
  143. <div class="form-group">
  144. <label>
  145. <?php _trans('mobile'); ?>
  146. </label>
  147. <input type="text" name="user_mobile" id="user_mobile" class="form-control"
  148. value="<?php echo $this->mdl_users->form_value('user_mobile', true); ?>"
  149. placeholder="<?php _trans('optional'); ?>">
  150. </div>
  151. <div class="form-group">
  152. <label>
  153. <?php _trans('web'); ?>
  154. </label>
  155. <input type="text" name="user_web" id="user_web" class="form-control"
  156. value="<?php echo $this->mdl_users->form_value('user_web', true); ?>"
  157. placeholder="<?php _trans('optional'); ?>">
  158. </div>
  159. <input type="submit" class="btn btn-success" name="btn_continue"
  160. value="<?php _trans('continue'); ?>">
  161. </form>
  162. </div>
  163. </div>