PageRenderTime 22ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/application/views/admin/page/directories_add_view.php

https://gitlab.com/muktobani/web_site
PHP | 101 lines | 79 code | 22 blank | 0 comment | 0 complexity | dfe76b443dad8e71c28ccda4fec504e3 MD5 | raw file
  1. <?php echo validation_errors('<h4 class="alert_warning">','</h4>'); ?>
  2. <article class="module width_full">
  3. <?php $action=($data_arr[0]['directories_id'])?"update":"save";?>
  4. <?php echo form_open_multipart(URL.'directories/'.$action);?>
  5. <header><h3>Post New Article</h3></header>
  6. <div class="module_content">
  7. <fieldset>
  8. <label>Logo</label>
  9. <input type="file" name="txt_logo[]" />
  10. </fieldset>
  11. <fieldset>
  12. <label>Company Name </label>
  13. <?php echo form_input('txt_company_name', set_value('txt_company_name',$data_arr[0]['company_name']));?>
  14. </fieldset>
  15. <fieldset>
  16. <label>Web Address</label>
  17. <?php echo form_input('txt_web_address', set_value('txt_web_address',$data_arr[0]['web_address']));?>
  18. </fieldset>
  19. <fieldset>
  20. <label>Email Address</label>
  21. <?php echo form_input('txt_email_address', set_value('txt_email_address',$data_arr[0]['email_address']));?>
  22. </fieldset>
  23. <fieldset>
  24. <label>Phone Number</label>
  25. <?php echo form_input('txt_phone', set_value('txt_phone',$data_arr[0]['phone']));?>
  26. </fieldset>
  27. <fieldset>
  28. <label>Description</label>
  29. <?php echo form_textarea('txt_description', set_value('txt_description',$data_arr[0]['description']));?>
  30. </fieldset>
  31. <fieldset>
  32. <label>Google Map</label>
  33. <?php echo form_textarea('txt_google_map', set_value('txt_google_map',$data_arr[0]['google_map']));?>
  34. </fieldset>
  35. <fieldset>
  36. <label>Business Category</label>
  37. <?php echo form_dropdown('cbo_business_category', $company_category,set_value('cbo_business_category',$data_arr[0]['business_category']));?>
  38. </fieldset>
  39. <fieldset>
  40. <label>Facebook</label>
  41. <?php echo form_input('txt_facebook',set_value('txt_facebook',$data_arr[0]['facebook']));?>
  42. </fieldset>
  43. <fieldset>
  44. <label>Google plus</label>
  45. <?php echo form_input('txt_google_plus',set_value('txt_google_plus',$data_arr[0]['google_plus']));?>
  46. </fieldset>
  47. <fieldset>
  48. <label>Linkedin</label>
  49. <?php echo form_input('txt_linkedin',set_value('txt_linkedin',$data_arr[0]['linkedin']));?>
  50. </fieldset>
  51. <fieldset>
  52. <label>Twitter</label>
  53. <?php echo form_input('txt_twitter',set_value('txt_twitter',$data_arr[0]['twitter']));?>
  54. </fieldset>
  55. <fieldset>
  56. <label>Gallery Photo</label>
  57. <table id="fabrication_table">
  58. <tbody>
  59. <tr>
  60. <td><input type="file" multiple="" id="txtfabricationA_1" name="txt_gallery[]" /></td>
  61. <td>
  62. <input type="button" id="increasefabrication_1" style="width:30px" class="formbutton" value="+" onClick="add_break_down_tr1(this.id,'fabrication_table')" />
  63. <input type="button" id="decreasefabrication_1" style="width:30px" class="formbutton" value="-" onClick="delete_break_down_tr1(this.id,'fabrication_table')"/>
  64. </td>
  65. </tr>
  66. </tbody>
  67. </table>
  68. </fieldset>
  69. </div>
  70. <footer>
  71. <div class="submit_link">
  72. <?php echo form_dropdown('cbo_status', $status_arr,set_value('cbo_status',$data_arr[0]['is_active']));?>
  73. <input type="submit" value="<?php echo ucfirst($action); ?>" class="alt_btn">
  74. <input type="reset" value="Reset">
  75. <?php echo form_hidden('update_id',set_value('update_id',$data_arr[0]['directories_id'])) ?>
  76. </div>
  77. </footer>
  78. <?php echo form_close(); ?>
  79. </article><!-- end of post new article -->