/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
PHP | 162 lines | 137 code | 5 blank | 20 comment | 6 complexity | 22cc19d9bb39cd0ab6aa0a48a7f55f09 MD5 | raw file
- <?php
- defined('_JEXEC') or die('Restricted access');
- $option = JRequest::getCmd('option');
- JHTML::_('behavior.tooltip');
- JHTML::_('behavior.formvalidation');
- $task = JRequest::getVar('task');
- $view = JRequest::getVar('view');
- if ($task == 'edit'){
- $tmp = 'edit';
- $row = $this->res->row;
- }else{//$task == 'add'
- $tmp = 'add';
- }
- ?>
- <!--<script type="text/javascript" src="components/com_properties/assets/zapatec.js"></script>
- <script type="text/javascript" src="components/com_properties/assets/jquery-1.3.2.js"></script>
- --><script type="text/javascript">
- function reloadCaptcha() {
- now = new Date();
- var capObj = document.getElementById('phoca-captcha');
- if (capObj) {
- capObj.src = capObj.src + (capObj.src.indexOf('?') > -1 ? '&' : '?') +"a="+Math.ceil(Math.random()*(now.getTime()));
- }
- }
- </script>
- <script type="text/javascript">
- /**
- * Submit the admin form
- */
- //check
- /*function listItemTask( id, task ) {
- var f = document.adminForm;
- cb = eval( 'f.' + id );
- if (cb) {
- for (i = 0; true; i++) {
- cbx = eval('f.cb'+i);
- if (!cbx) break;
- cbx.checked = false;
- } // for
- cb.checked = true;
- f.boxchecked.value = 1;
- submitbutton(task);
- }
- return false;
- }*/
- function submitform(pressbutton,a){
- if (pressbutton) {
- document.adminForm.task.value=pressbutton;
- document.adminForm.id.value=a;
- }
- if (typeof document.adminForm.onsubmit == "function") {
- document.adminForm.onsubmit();
- }
- document.adminForm.submit();
- }
- function submitbutton(pressbutton,a) {
- submitform(pressbutton,a);
- }
- </script>
- <style type="text/css">
- #progressCM {
- background:url("components/com_properties/assets/images/loading.gif") ;
- float:right;
- visibility:hidden;
- }
- </style>
- <div id="center2"><?php //echo"<pre>";print_r($this->post);exit; ?>
-
- <div class="box-center">
- <h3><span><?php echo JText::_('Danh sách việc đăng tuyển');?></span></h3>
- <table class="adminform">
- <tr>
- <td align="right" width="90%">
- <?php echo JText::_( ' ' ); ?>
- </td>
- <td nowrap="nowrap">
- <?php echo $lists['state_usergr'];?>
- </td>
- </tr>
- <tr>
- <link rel="stylesheet" type="text/css" href="<?php echo JURI::base()?>components/com_properties/assets/style.css"></link>
- <ul id="tpj_topmenu">
- <?php $user = JFactory::getUser();
- $mid = $user->get('id');?>
- <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>
- <li><a href="#"><?php echo JText::_('Quản lý đăng tìm việc'); ?></a>
- <ul>
- <li><a href="index.php?option=com_properties&view=postcv&task=list"> <?php echo JText::_('Danh sách CV'); ?></a></li>
- <li><a href="index.php?option=com_properties&view=postcv"> <?php echo JText::_('Tạo CV mới'); ?></a></li>
- </ul>
- </li>
- <li><a href="index.php?option=com_properties&view=seecker"><?php echo JText::_('Quản Lý tìm việc'); ?></a>
- </li>
- <li><a href="index.php?option=com_properties&view=all"><?php echo JText::_('Xem tất cả công việc'); ?></a>
- </li>
- </ul>
- </tr>
- </table>
- <form action= "index.php?option=<?php echo $option;?>&view=postcv&task=list" method="POST" name="adminForm" id="adminForm">
- <?php echo JHTML::_( 'form.token' ); ?>
- <div class="clear"></div>
- <div class="css_searchvieclam">
- <div class="css_nganhnghe">
- <h1></h1>
- <div align="right" class="chex_nghe">
- </div>
- <table>
- <tbody><tr class="title_list">
- <td><?php echo JText::_('Tên công việc');?></td>
- <td><?php echo JText::_('Cấp bậc');?></td>
- <td><?php echo JText::_('Thành phố');?></td>
- <td><?php echo JText::_('Mức lương');?></td>
- <td><?php echo JText::_('File cv');?></td>
- <td><?php echo JText::_('Published');?></td>
- <td><?php echo JText::_('Del');?></td>
- </tr>
- <?php
- $j = 0;
- foreach ($this->post as $post){
- $checked = JHTML::_('grid.id', $j, $post->id );
- $published = JHTML::_('grid.published', $post, $j );
- ?>
- <tr class="box_row_01">
- <td style="display: none"><?php echo $checked;?></td>
- <td width="20%">
- <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;?>">
- <?php echo $post->vitri;?><?php //echo $post->name_cv;?>
- </a>
- </td>
- <td width="10%" ><?php echo $post->pp_name;?></td>
- <td width="10%" ><?php echo $post->pst_name;?></td>
- <td width="5%" ><?php echo $post->salary?></td>
- <td width="10%" >
- <a href="<?php echo JURI::base()?>images/properties/cv/<?php echo $post->name_file;?>">
- <?php echo $post->name_file;?>
- </a>
- </td>
-
- <td width="2%" ><?php echo $published;?></td>
- <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>
- </td>
- </tr>
- <?php $j++;}?>
- </tbody></table>
- <div class="clear"></div>
- <div align="right" class="chex_nghe">
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <input type="hidden" name="task" value="" />
- <input type="hidden" id="id" name="id" value="">
- <input type="hidden" name="option" value="<?php echo $option;?>" />
- <input type="hidden" name="view" value="<?php echo $view;?>">
- <input type="hidden" name="boxchecked" value="0" />
- <input type="hidden" name="tmp" value="<?php echo $tmp; ?>">
- </form>
- </div>
-
- </div>