PageRenderTime 35ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 1ms

/Quản lý website tuyển dụng việc làm PHP/webcaoca/public_html/vlv/components/com_properties/views/postcv/tmpl/list.php

https://gitlab.com/phamngsinh/baitaplon_sinhvien
PHP | 162 lines | 137 code | 5 blank | 20 comment | 6 complexity | 22cc19d9bb39cd0ab6aa0a48a7f55f09 MD5 | raw file
  1. <?php
  2. defined('_JEXEC') or die('Restricted access');
  3. $option = JRequest::getCmd('option');
  4. JHTML::_('behavior.tooltip');
  5. JHTML::_('behavior.formvalidation');
  6. $task = JRequest::getVar('task');
  7. $view = JRequest::getVar('view');
  8. if ($task == 'edit'){
  9. $tmp = 'edit';
  10. $row = $this->res->row;
  11. }else{//$task == 'add'
  12. $tmp = 'add';
  13. }
  14. ?>
  15. <!--<script type="text/javascript" src="components/com_properties/assets/zapatec.js"></script>
  16. <script type="text/javascript" src="components/com_properties/assets/jquery-1.3.2.js"></script>
  17. --><script type="text/javascript">
  18. function reloadCaptcha() {
  19. now = new Date();
  20. var capObj = document.getElementById('phoca-captcha');
  21. if (capObj) {
  22. capObj.src = capObj.src + (capObj.src.indexOf('?') > -1 ? '&' : '?') +"a="+Math.ceil(Math.random()*(now.getTime()));
  23. }
  24. }
  25. </script>
  26. <script type="text/javascript">
  27. /**
  28. * Submit the admin form
  29. */
  30. //check
  31. /*function listItemTask( id, task ) {
  32. var f = document.adminForm;
  33. cb = eval( 'f.' + id );
  34. if (cb) {
  35. for (i = 0; true; i++) {
  36. cbx = eval('f.cb'+i);
  37. if (!cbx) break;
  38. cbx.checked = false;
  39. } // for
  40. cb.checked = true;
  41. f.boxchecked.value = 1;
  42. submitbutton(task);
  43. }
  44. return false;
  45. }*/
  46. function submitform(pressbutton,a){
  47. if (pressbutton) {
  48. document.adminForm.task.value=pressbutton;
  49. document.adminForm.id.value=a;
  50. }
  51. if (typeof document.adminForm.onsubmit == "function") {
  52. document.adminForm.onsubmit();
  53. }
  54. document.adminForm.submit();
  55. }
  56. function submitbutton(pressbutton,a) {
  57. submitform(pressbutton,a);
  58. }
  59. </script>
  60. <style type="text/css">
  61. #progressCM {
  62. background:url("components/com_properties/assets/images/loading.gif") ;
  63. float:right;
  64. visibility:hidden;
  65. }
  66. </style>
  67. <div id="center2"><?php //echo"<pre>";print_r($this->post);exit; ?>
  68. <div class="box-center">
  69. <h3><span><?php echo JText::_('Danh sách việc đăng tuyển');?></span></h3>
  70. <table class="adminform">
  71. <tr>
  72. <td align="right" width="90%">
  73. <?php echo JText::_( ' ' ); ?>
  74. </td>
  75. <td nowrap="nowrap">
  76. <?php echo $lists['state_usergr'];?>
  77. </td>
  78. </tr>
  79. <tr>
  80. <link rel="stylesheet" type="text/css" href="<?php echo JURI::base()?>components/com_properties/assets/style.css"></link>
  81. <ul id="tpj_topmenu">
  82. <?php $user = JFactory::getUser();
  83. $mid = $user->get('id');?>
  84. <li><a href="index.php?option=com_properties&view=seecker&mid=<?php echo $mid;?>&task=edit"><?php echo JText::_('Sửa thông tin đăng ký'); ?></a></li>
  85. <li><a href="#"><?php echo JText::_('Quản lý đăng tìm việc'); ?></a>
  86. <ul>
  87. <li><a href="index.php?option=com_properties&view=postcv&task=list"> <?php echo JText::_('Danh sách CV'); ?></a></li>
  88. <li><a href="index.php?option=com_properties&view=postcv"> <?php echo JText::_('Tạo CV mới'); ?></a></li>
  89. </ul>
  90. </li>
  91. <li><a href="index.php?option=com_properties&view=seecker"><?php echo JText::_('Quản Lý tìm việc'); ?></a>
  92. </li>
  93. <li><a href="index.php?option=com_properties&view=all"><?php echo JText::_('Xem tất cả công việc'); ?></a>
  94. </li>
  95. </ul>
  96. </tr>
  97. </table>
  98. <form action= "index.php?option=<?php echo $option;?>&view=postcv&task=list" method="POST" name="adminForm" id="adminForm">
  99. <?php echo JHTML::_( 'form.token' ); ?>
  100. <div class="clear"></div>
  101. <div class="css_searchvieclam">
  102. <div class="css_nganhnghe">
  103. <h1></h1>
  104. <div align="right" class="chex_nghe">
  105. </div>
  106. <table>
  107. <tbody><tr class="title_list">
  108. <td><?php echo JText::_('Tên công việc');?></td>
  109. <td><?php echo JText::_('Cấp bậc');?></td>
  110. <td><?php echo JText::_('Thành phố');?></td>
  111. <td><?php echo JText::_('Mức lương');?></td>
  112. <td><?php echo JText::_('File cv');?></td>
  113. <td><?php echo JText::_('Published');?></td>
  114. <td><?php echo JText::_('Del');?></td>
  115. </tr>
  116. <?php
  117. $j = 0;
  118. foreach ($this->post as $post){
  119. $checked = JHTML::_('grid.id', $j, $post->id );
  120. $published = JHTML::_('grid.published', $post, $j );
  121. ?>
  122. <tr class="box_row_01">
  123. <td style="display: none"><?php echo $checked;?></td>
  124. <td width="20%">
  125. <a class="hot_vieclam" href="index.php?option=com_properties&view=postcv&id=<?php echo $post->id;?>&mid=<?php echo $post->mid;?>&task=edit" tile="<?php echo $post->vitri;?>">
  126. <?php echo $post->vitri;?><?php //echo $post->name_cv;?>
  127. </a>
  128. </td>
  129. <td width="10%" ><?php echo $post->pp_name;?></td>
  130. <td width="10%" ><?php echo $post->pst_name;?></td>
  131. <td width="5%" ><?php echo $post->salary?></td>
  132. <td width="10%" >
  133. <a href="<?php echo JURI::base()?>images/properties/cv/<?php echo $post->name_file;?>">
  134. <?php echo $post->name_file;?>
  135. </a>
  136. </td>
  137. <td width="2%" ><?php echo $published;?></td>
  138. <td width="3%" class="align_in"><p><a href="javascript: submitbutton('remove',<?php echo $post->id?>)" onclick="return confirm('Bạn có muốn xóa danh mục này')"><?php echo JText::_('Delete')?></a></p>
  139. </td>
  140. </tr>
  141. <?php $j++;}?>
  142. </tbody></table>
  143. <div class="clear"></div>
  144. <div align="right" class="chex_nghe">
  145. </div>
  146. </div>
  147. <div class="clear"></div>
  148. </div>
  149. <input type="hidden" name="task" value="" />
  150. <input type="hidden" id="id" name="id" value="">
  151. <input type="hidden" name="option" value="<?php echo $option;?>" />
  152. <input type="hidden" name="view" value="<?php echo $view;?>">
  153. <input type="hidden" name="boxchecked" value="0" />
  154. <input type="hidden" name="tmp" value="<?php echo $tmp; ?>">
  155. </form>
  156. </div>
  157. </div>