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


PHP Pages函数代码示例

本文整理汇总了PHP中Pages函数的典型用法代码示例。如果您正苦于以下问题:PHP Pages函数的具体用法?PHP Pages怎么用?PHP Pages使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: val

')"/>
          
        	 <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary" value="Delete Selected">
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
   <table class="table table-hover table-bordered ">
   <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select * from tblperiod where 1=1 {$where} order by period";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_plan_period.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
            	        
   <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
	 		<center>
            <div style="color:#009900; padding:0px 0px 10px 0px; font-weight:bold;"><?php 
    echo $_SESSION['sess_msg'];
    $_SESSION['sess_msg'] = '';
    ?>
</div>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:manage_plan_period.php

示例2: Pages

</script>
<?php 
require "addtocartbutton.php";
$page = (int) (!isset($_GET["page"]) ? 1 : $_GET["page"]);
$page = $page == 0 ? 1 : $page;
$perpage = 12;
//limit in each page
$startpoint = $page * $perpage - $perpage;
if ($cat_id) {
    $sql = @mysql_query("select * FROM `products` where  `cat_id` = {$cat_id} and `status` = true order by `created_at` desc LIMIT {$startpoint},{$perpage}");
} else {
    $sql = @mysql_query("select * FROM `products` where `status` = true order by `created_at` desc LIMIT {$startpoint},{$perpage}");
}
$i = 0;
//show pages
echo Pages("products", $perpage, "store.php?cat_id=" . $cat_id . "&&");
$i = 0;
while ($row = mysql_fetch_array($sql)) {
    echo '<td style="border-right:1px solid #DCDCDC" width="33%" height="175">';
    echo '<table width="90%" height="100%" border="0" cellpadding="0" cellspacing="0">';
    echo '<tr>';
    echo '<td align="center" valign="middle"><a href="store.php?id=' . $row[0] . '"><img src="images/' . $row[4] . '" alt="' . $row[2] . '" width="94" height="103" border="0"></a></td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td height="50" align="left" valign="top"><div align="center"><strong>' . $row[2] . '</strong><br>$ ' . $row[6] . '</div></td>';
    echo '</tr>';
    echo '<tr><td align="center"><input name="" src="images/add_to_cart_new.jpg" type="image"  onclick="submit_addtocart(' . $row[0] . ');"></td></tr>';
    echo '</table>';
    echo '</td>';
    $i = $i + 1;
    if ($i % 3 == 0) {
开发者ID:kraza,项目名称:ecom,代码行数:31,代码来源:productlist.php

示例3: val

')"/>
       &nbsp;&nbsp;&nbsp;
        	 <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary" value="Delete Selected">
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
    <table class="table table-hover table-bordered ">
    <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select * from tblrqsttype where 1=1 {$where} order by id desc";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_request_type.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
            	        
   <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
	 		<center>
            <div style="color:#009900; padding:0px 0px 10px 0px; font-weight:bold;"><?php 
    echo $_SESSION['sess_msg'];
    $_SESSION['sess_msg'] = '';
    ?>
</div>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:manage_request_type.php

示例4: mysql_connect

<div style="background-image:url(images/content_bg.jpg);position: relative; margin:auto; width: 1024px; min-height:550px;">
<div class="box">
<h2>Glossary</h2>
<?php 
$page = (int) (!isset($_GET["page"]) ? 1 : $_GET["page"]);
$page = $page == 0 ? 1 : $page;
$perpage = 10;
//limit in each page
$startpoint = $page * $perpage - $perpage;
include "config.inc.php";
global $db, $db_host, $db_user, $db_password;
$conn = mysql_connect($db_host, $db_user, $db_password);
if (!$conn) {
    die("ERROR: " . mysql_error() . "\n");
}
mysql_select_db($db);
$sql = @mysql_query("select * FROM `glossary` order by id asc LIMIT {$startpoint},{$perpage}");
echo Pages("glossary", $perpage, "glossary.php?") . '<br>';
while ($Row = mysql_fetch_array($sql)) {
    echo '<span class="blue">' . $Row['Caption'] . '</span>&nbsp;-&nbsp;' . $Row['Data'] . '<br>';
}
echo Pages("glossary", $perpage, "glossary.php?");
mysql_free_result($sql);
mysql_close();
?>
</div></div> 
<div id="footer">
&copy; Metal Forming Virtual Simulation Lab - Dayalbagh Educational Institute (www.dei.ac.in)
</div>
</body>
</html>
开发者ID:samodk,项目名称:metal-forming-virtual-simulation-lab-dei,代码行数:31,代码来源:Glossary.php

示例5: val

')"/>
       &nbsp;&nbsp;&nbsp;
        	 <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary" value="Delete Selected">
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
    	<table class="table table-hover table-bordered ">
        <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select * from tblplansubcategory where 1=1 {$where} order by planSubid desc";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_subcategory.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
             	        
   <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
	 		<center>
            <div style="color:#009900; padding:0px 0px 10px 0px; font-weight:bold;"><?php 
    echo $_SESSION['sess_msg'];
    $_SESSION['sess_msg'] = '';
    ?>
</div>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:manage_subcategory.php

示例6: val

')"/>
       &nbsp;&nbsp;&nbsp;
        	 <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary btn-sm" value="Delete Selected">
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
      <table class="table table-hover table-bordered ">
      <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select * from tbl_city_new where 1=1 {$where} order by City_Name";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_city.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
        	        
       <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
                <center>
                <div style="color:#009900; padding:0px 0px 10px 0px; font-weight:bold;"><?php 
    echo $_SESSION['sess_msg'];
    $_SESSION['sess_msg'] = '';
    ?>
</div>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:manage_city.php

示例7: val

')"/>
       &nbsp;&nbsp;&nbsp;
   	  <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary btn-sm" value="Delete Selected">
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
   <table class="table table-hover table-bordered ">
   <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select tblmoduleparentname.parentName as parent, tblmodulecategory.moduleCategory as category \n\t \t\t\t from tblModuleParentName\n\t\t\t\t inner join tblmodulecategory\n\t\t\t\t on tblmoduleparentname.moduleCatId = tblmodulecategory.moduleCatId";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_parent_module.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
             	        
   <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
   <center>
   <div style="color:#009900; padding:0px 0px 10px 0px; font-weight:bold;"><?php 
    echo $_SESSION['sess_msg'];
    $_SESSION['sess_msg'] = '';
    ?>
</div>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:manage_parent_module.php

示例8: confirm

       &nbsp;&nbsp;&nbsp;
        	 <input type="submit" name="delete_selected" onClick="return confirm('Are you sure you want to delete?')" class="btn btn-primary" value="Delete Selected">
        </form>
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
   <table class="table table-hover table-bordered ">
   <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select * from tblcallingdata where 1=1 {$where} order by id desc";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'managecontacts.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
   <form name='fullform' method='post' onSubmit="return confirmdelete()">
   <input type="hidden" name="token" value="<?php 
echo $token;
?>
" />
   <input type='hidden' name='pagename' value='users'>             	        
   <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
   <center>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:1_old_4-9-15_managecontacts.php

示例9: mysql_connect

include "config.inc.php";
global $db, $db_host, $db_user, $db_password;
$conn = mysql_connect($db_host, $db_user, $db_password);
if (!$conn) {
    die("ERROR: " . mysql_error() . "\n");
}
mysql_select_db($db);
$result = mysql_query("select * from feedback order by `Sr.No.` desc limit {$startpoint},{$perpage}");
while ($row = mysql_fetch_array($result)) {
    echo "<tr>";
    echo "<td style=\"font-size:1.1em; text-align:center;\">" . $row['Sr.No.'] . "</td>";
    echo "<td style=\"font-size:1.1em;\">" . $row['Name'] . "</td>";
    echo "<td style=\"font-size:1.1em;\">" . $row['Email'] . "</td>";
    echo "<td style=\"font-size:1.1em;\">" . $row['Class'] . "</td>";
    echo "<td style=\"font-size:1.1em;\">" . $row['Institute'] . "</td>";
    echo "<td style=\"font-size:1.1em;\">" . $row['About'] . "</td>";
    echo "<td style=\"font-size:1.1em;\">" . $row['DateTime'] . "</td>";
    echo "</tr>";
}
?>
</table>
<?php 
echo "<br/>" . Pages("feedback", $perpage, "ack.php?") . '<br>';
mysql_free_result($result);
mysql_close();
?>
</center></div>
<div id="footer">
&copy; Metal Forming Virtual Simulation Lab - Dayalbagh Educational Institute (www.dei.ac.in)</div>
</body>
</html>
开发者ID:samodk,项目名称:metal-forming-virtual-simulation-lab-dei,代码行数:31,代码来源:ack.php

示例10: ListCap

 function ListCap()
 {
     global $conf, $langs;
     if (file_exists('menu/standard_menu.lib.php') && empty($conf->optional_menu)) {
         include 'menu/standard_menu.lib.php';
     } elseif (!empty($conf->optional_menu)) {
         include addslashes($conf->optional_menu);
     } else {
         die('Can\'t load standard_menu.lib.php please download menu/standard_menu.lib.php from https://github.com/AT-backbone/Cap-PHP-library');
     }
     $out = $this->Header_llx();
     $Type_arr = Types();
     // TYPES FOR PAGES
     $Pages_arr = Pages();
     // PAGES
     $out .= '<body>';
     $out .= '<form method="POST" id="capform" name="capform" action="index.php?conv=1" enctype="multipart/form-data" data-ajax="false">';
     $out .= '<div data-role="page" id="capview">';
     $out .= '<div data-role="panel" data-display="push" id="' . $pagename . '_panel">';
     $out .= '<!-- panel content goes here -->';
     $out .= '<ul data-role="listview">';
     $out .= '<li style="height: 91px;">';
     $out .= '<img src="conf/logo.jpg" style="border: 1px solid black;border-radius: 45px;width: 20%;margin: 10px 0px 0px 10px;">';
     $out .= '<h1>';
     $out .= 'Cap Creator';
     $out .= '</h1>';
     $out .= '<br>';
     $out .= '<span style="font-size: 10px;">';
     $out .= 'Cap v1.1';
     $out .= '</span>';
     $out .= '</li>';
     foreach ($Pages_arr as $link => $Page_Name) {
         if (!in_array($link, $Pages_arr['noajax'])) {
             $data = 'data-ajax="false"';
         }
         // turn all links to ajax off (when not jquery can not link to the other pages)
         if ($link != 'noajax') {
             if ($link == '?conv=1#capconv') {
                 $out .= '<li data-theme="b"><a href="' . $link . '" ' . $data . '>' . $Page_Name . '</a></li>';
             } else {
                 $out .= '<li><a href="' . $_SERVER[PHP_SELF] . $link . '" ' . $data . '>' . $Page_Name . '</a></li>';
             }
         }
         unset($data);
     }
     $out .= '</ul>';
     $out .= '</div>';
     $out .= '<div data-theme="b" data-role="header">';
     $out .= '<a href="#' . $pagename . '_panel" class="ui-btn ui-icon-bars ui-btn-icon-notext" style="border: none;"></a>';
     $out .= '<h1>Cap Converter</h1>';
     $out .= '</div>';
     $out .= '<div role="main" class="ui-content">';
     $out .= '<div data-theme="a" data-form="ui-body-a" class="ui-body ui-body-a ui-corner-all">';
     /*								
     // get all convert files
     $std_tmp = scandir('convert/');								
     foreach($std_tmp as $num => $filename)
     {
     	if(substr($filename, 0, 4) != "std_") 
     	{
     		unset($std_tmp[$num]);
     	}
     	else
     	{
     		$std_converter[substr($filename, 4, -9)] = substr($filename, 4, -9);
     	}
     }
     
     $area_tmp = scandir('convert/');								
     foreach($area_tmp as $num => $filename)
     {
     	if(substr($filename, 0, 5) != "area_") 
     	{
     		unset($area_tmp[$num]);
     	}
     	else
     	{
     		$area_converter[substr($filename, 5, -9)] = substr($filename, 5, -9);
     	}
     }
     
     
     $std = $this->buildSelect("stdconverter", $std_converter, "data-native-menu=\"false\"", "", "standard");
     $area = $this->buildSelect("areaconverter", $area_converter, "data-native-menu=\"false\"", "", "standard"); 
     
     	$out.= '<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true" id="converter">';
     		$out.= '<legend>'.$langs->trans("SelectStdAreaCap").': '.$this->tooltip('SelectStdAreaCaptool', $langs->trans("InfoSelectStdAreaCap")).'</legend>';							
     			$out.= $std;					
     			$out.= $area;							
     	$out.= '</fieldset>';
     */
     // get all convert files
     $converter_tmp = scandir('convert/');
     foreach ($converter_tmp as $num => $filename) {
         if (substr($filename, 0, 5) != "conv_") {
             unset($converter_tmp[$num]);
         } else {
             $converter[substr($filename, 5, -9)] = substr($filename, 5, -9);
         }
     }
//.........这里部分代码省略.........
开发者ID:AT-backbone,项目名称:Cap-PHP-library,代码行数:101,代码来源:cap.form.class.php

示例11: val

')"/>
       &nbsp;&nbsp;&nbsp;
        	 <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary btn-sm" value="Delete Selected">
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
     <table class="table table-hover table-bordered ">
     <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select * from tbldevicecompany where 1=1 {$where} order by name";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_device_company.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
   <form name='fullform' method='post' onSubmit="return confirmdelete()">
   <input type="hidden" name="token" value="<?php 
echo $token;
?>
" />
   <input type='hidden' name='pagename' value='users'>            	        
   <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
	 		<center>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:manage_device_company.php

示例12: val

')"/>
       &nbsp;&nbsp;&nbsp;
        	 <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary btn-sm" value="Delete Selected">
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
      <table class="table table-hover table-bordered ">
      <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select * from tbl_pincode where 1=1 {$where} order by Pincode";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_pincode.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
           	        
       <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
                <center>
                <div style="color:#009900; padding:0px 0px 10px 0px; font-weight:bold;"><?php 
    echo $_SESSION['sess_msg'];
    $_SESSION['sess_msg'] = '';
    ?>
</div>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:manage_pincode.php

示例13: val

       &nbsp;&nbsp;&nbsp;
        	 <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary" value="Delete Selected">
        </form>
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
      <table class="table table-hover table-bordered ">
      <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "SELECT A.id, C.Company_Name as C_name, A.vehicle_no as V_no, A.vehicle_odometer as v_odometer\n\t\t\t\t\tFROM tbl_gps_vehicle_master as A \n\t\t\t\t\tINNER JOIN tbl_customer_master as B \n\t\t\t\t\tON A.customer_Id = B.cust_id\n\t\t\t\t\tINNER JOIN tblcallingdata as C \n\t\t\t\t\tON B.callingdata_id = C.id order by C.Company_Name";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_vehicle.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
       <form name='fullform' method='post' onSubmit="return confirmdelete()">
       <input type="hidden" name="token" value="<?php 
echo $token;
?>
" />
       <input type='hidden' name='pagename' value='users'>            	        
       <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
                <center>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:1_old_20_9_2015_manage_vehicle.php

示例14: elseif

?>
<div class="tweet_bx">
<?php 
//show pages
if ($_REQUEST['gigs'] == 'latest') {
    $page_name = 'index.php?gigs=latest&';
} elseif ($_REQUEST['gigs'] == 'rating') {
    $page_name = 'index.php?gigs=rating&';
} elseif ($_REQUEST['gigs'] == 'popular') {
    $page_name = 'index.php?gigs=popular&';
} elseif ($_REQUEST['tags'] != '') {
    $page_name = 'index.php?tags=' . $_REQUEST['tags'] . '&';
} else {
    $page_name = 'index.php?';
}
echo Pages("ninerr_gigs", $perpage, $page_name, $_SESSION['user_id']);
?>

</div>
</div>
<?php 
include 'right.php';
?>
</div>
<div class="body_cont_bottom">
</div>
</div>
<?php 
include 'footer.php';
?>
开发者ID:mix376,项目名称:biverr,代码行数:30,代码来源:index.php

示例15: val

')"/>
       &nbsp;&nbsp;&nbsp;
       	  <input type="submit" name="delete_selected" onClick="return val();" class="btn btn-primary" value="Delete Selected">
        </div>
    </div>
    <div class="col-md-12">
        
    <div class="table-responsive">
   <table class="table table-hover table-bordered ">
   <?php 
$where = '';
$linkSQL = "";
if (!isset($linkSQL) or $linkSQL == '') {
    $linkSQL = "select * from tblaccessories where 1=1 {$where} order by name";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_accessories.php?', $token);
if (isset($_SESSION['linkSQL'])) {
    $mSQL = $_SESSION['linkSQL'] . " " . $_SESSION['limit'];
}
$oRS = mysql_query($mSQL);
?>
   <form name='fullform' method='post' onSubmit="return confirmdelete()">
   <input type="hidden" name="token" value="<?php 
echo $token;
?>
" />
   <input type='hidden' name='pagename' value='users'>            	        
   <?php 
if ($_SESSION['sess_msg'] != '') {
    ?>
	 		<center>
开发者ID:nitinvermak,项目名称:AxiomTrack,代码行数:31,代码来源:manage_accessories.php


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