当前位置: 首页>>代码示例>>PHP>>正文


PHP Functions::display_data_table方法代码示例

本文整理汇总了PHP中Functions::display_data_table方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions::display_data_table方法的具体用法?PHP Functions::display_data_table怎么用?PHP Functions::display_data_table使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Functions的用法示例。


在下文中一共展示了Functions::display_data_table方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Functions

 function write_div_table_display_records($order = null, $order_type = null)
 {
     $data['stocks'] = $this->Stocks_model->get_all_display($order, $order_type);
     $functions = new Functions();
     $link_to_screen = base_url() . 'inventory/stocks';
     return $functions->display_data_table($data['stocks'], $link_to_screen, $this);
 }
开发者ID:goudaelalfy,项目名称:erp,代码行数:7,代码来源:stocks.php

示例2: lang

						<h2><i class="icon-user"></i> <?php 
echo lang('news_letter_subscripers');
?>
 </h2>
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">
<?php 
$this->load->view('admin/news_letter_subscriper/functions');
$functions = new Functions();
$link_to_screen = base_url() . $this->lang->lang() . "/" . ADMIN . "/newslettersubscriper";
$functions->display_data_table($rows, $link_to_screen, $this);
?>
	
	<div class="pagination pagination-centered">
	<ul>
	<?php 
$pages = ceil($rows_count / $paging_no_of_pages);
// ------------- previous link---------
$previous_lnk = $page - 1;
if ($previous_lnk > 0) {
    echo "<li><a href='" . base_url() . $this->lang->lang() . "/" . ADMIN . "/newslettersubscriper/table/{$previous_lnk}'> " . lang('lnk_prev') . "</a></li>";
}
for ($counter = 0; $counter < $pages; $counter += 1) {
    $page_no = $counter + 1;
    if ($page == $page_no) {
        $class_style = "class='active'";
开发者ID:goudaelalfy,项目名称:nahda,代码行数:31,代码来源:table.php

示例3: Functions

 function write_div_table_display_records($order = null, $order_type = null)
 {
     $data['screens'] = $this->Screen_model->get_all_display($order, $order_type);
     $functions = new Functions();
     $link_to_screen = base_url() . $this->lang->lang() . '/screen';
     return $functions->display_data_table($data['screens'], $link_to_screen, $this);
 }
开发者ID:goudaelalfy,项目名称:nahda,代码行数:7,代码来源:screen.php

示例4: Functions

		<?php 
}
?>
		
		<td width="100px"></td> 
		<td width="100px"></td>
		<td width="100px"></td>
		<td width="100px"></td>
		<td width="200px"></td>
		
	</tr>
	
	<tr>
	<td colspan="7" height="30px"></td> 
	</tr>
	
</table>

<?php 
echo "<div id='div_table_display_records'>";
$functions = new Functions();
$link_to_screen = base_url() . 'ums/screens_access';
$functions->display_data_table($develop_screens, $link_to_screen, $this);
echo "</div>";
?>

</form>
</div>

<?php 
$this->load->view('includes/footer');
开发者ID:goudaelalfy,项目名称:erp,代码行数:31,代码来源:view.php

示例5: redirect

 function write_div_table_display_records($order = null, $order_type = null)
 {
     if (!$this->session->userdata('user_session')) {
         redirect(base_url() . $this->lang->lang() . "/" . ADMIN . "/user/login");
     }
     $rows_count = $this->User_model->get_count();
     $data['rows_count'] = $rows_count;
     $settings = $this->Setting_model->get_all();
     $data['paging_no_of_pages'] = $settings[0]->paging_no_of_pages;
     $per_page = $data['paging_no_of_pages'];
     if (isset($_GET['page'])) {
         $page = $_GET['page'];
     } else {
         $page = 1;
     }
     $start = ($page - 1) * $per_page;
     $data['users'] = $this->User_model->get_all_display_paging($start, $per_page, $order, $order_type);
     $functions = new Functions();
     $link_to_screen = base_url() . $this->lang->lang() . '/' . ADMIN . '/user';
     $inner_html = "\n\t\t<script type='text/javascript'  src='" . base_url() . "js/includes/jquery.js' > </script>\n\t\t<script type='text/javascript'  src='" . base_url() . "js/admin/user/ajax_paging.js' > </script>\n\t\t<div id='news' class='tabcon'>\n\t\t<div id='resn'></div>";
     $inner_html = $inner_html . "<div id='pagesn'>";
     $ipp = $per_page;
     //items per page
     $totalpages = ceil($rows_count / $ipp);
     $inner_html = $inner_html . "<span class='peg'><ul class='pages'>";
     for ($i = 1; $i <= $totalpages; $i++) {
         $inner_html = $inner_html . "<li class='{$i}'><a href='#'>{$i}</a></li>";
     }
     $inner_html = $inner_html . "</ul></span>";
     $inner_html = $inner_html . "</div></div>";
     $inner_html = printf($inner_html);
     return $inner_html . $functions->display_data_table($data['users'], $link_to_screen, $this);
 }
开发者ID:goudaelalfy,项目名称:nahda,代码行数:33,代码来源:user.php


注:本文中的Functions::display_data_table方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。