')"/>
          
        	 <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>
Example #2
0
</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) {
')"/>
       &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>
<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>
')"/>
       &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>
Example #6
0
')"/>
       &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>
')"/>
       &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>
       &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>
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>
 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);
         }
     }
     $input = $this->buildSelect("inputconverter", $converter, "data-native-menu=\"false\"", "", "standard");
     $output = $this->buildSelect("outputconverter", $converter, "data-native-menu=\"false\"", "", "standard");
     $out .= '<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true" id="converter">';
     $out .= '<legend>' . $langs->trans("SelectInputandOutputCap") . ': ' . $this->tooltip('SelectInputandOutputCaptool', $langs->trans("InfoSelectInputandOutputCap")) . '</legend>';
     $out .= $input;
     $out .= $output;
     $out .= '</fieldset>';
     $out .= '<input type="file" name="uploadfile" id="uploadfile">';
     // or
     $out .= '<fieldset data-role="controlgroup">';
     $out .= '<legend>' . $langs->trans("SelectCaps") . ':</legend>';
     foreach (scandir($conf->cap->output) as $num => $capfilename) {
         if ($num > 1) {
             $out .= '<input type="radio" name="location" id="cap_file_' . $num . '" value="' . urlencode($capfilename) . '">';
             $out .= '<label for="cap_file_' . $num . '">' . $capfilename . '</label>';
         }
     }
     $out .= '</fieldset>';
     $out .= '<input type="submit" value="<h1>' . $langs->trans("Convert") . '</h1>" data-ajax="false">';
     $out .= '</div>';
     $out .= '</div><!-- /content -->';
     $out .= '<div data-role="footer" data-theme="b">';
     $out .= '</div><!-- /footer -->';
     $out .= '</div><!-- /page -->';
     $out .= '</form>';
     $out .= '</body>';
     return $out;
 }
')"/>
       &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>
Example #12
0
')"/>
       &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>
       &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>
Example #14
0
?>
<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';
?>
')"/>
       &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>
')"/>
       &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 tblserviceprovider where 1=1 {$where} order by serviceprovider";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_serviceprovider.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>
')"/>
       &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 tbldevicemodel where 1=1 {$where} order by model_name";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_devicemodel.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>
Example #18
0
    $active = False;
    echo '<table width="500" border="0"><tr><td><strong>Product</strong></td><td><strong>Status</strong></td><td><strong>Action</strong></td></tr>';
    while ($row = mysql_fetch_array($sql)) {
        $active = True;
        echo '<tr><td>' . $row[1] . '</td><td>';
        if ($row[3]) {
            echo 'Active';
        } else {
            echo 'InActive';
        }
        echo '</td><td><A HREF="category.php?id=' . $row[0] . '&&mode=edit">Edit</a> / <A HREF="add_products.php?type=category&&mode=delete&&id=' . $row[0] . '" onclick = "' . $conform . '">Delete</a></td></tr>';
    }
    echo '</table>';
    //show pages
    if ($active) {
        echo Pages("category", $perpage, "category.php?&&");
    } else {
        echo "No Product added in this category.";
    }
    echo '<br/><br/> </br><a href="category.php?mode=cat_add">Add New </a>';
    echo $mode;
    echo '<hr>';
}
?>
                
                  <?php 
if ($mode) {
    ?>
                  <p><strong>Add Category </strong></p>
                  
                   <form method="POST" action="add_products.php?mode=<?php 
Example #19
0
File: index.php Project: kraza/ecom
color:#333;
text-transform: capitalize;
}
a:hover{
color: #999;
text-decoration:underline
}
</style>
</head>
<body>
<?php 
$page = (int) (!isset($_GET["page"]) ? 1 : $_GET["page"]);
$page = $page == 0 ? 1 : $page;
$perpage = 1;
//limit in each page
$startpoint = $page * $perpage - $perpage;
$sql = @mysql_query("select * FROM `category` order by id desc LIMIT {$startpoint},{$perpage}");
while ($Row = mysql_fetch_array($sql)) {
    echo '<p style="text-align: center;"><a target="_blank" href="' . $Row[0] . '">' . $Row[1] . '</a></p>';
}
//show pages
echo Pages("category", $perpage, "index.php?");
?>
<p><a>Your limit per page is = '<?php 
echo $perpage;
?>
'</a></p>
<a href="http://www.jooria.com/Tutorials/Website-Programming-16/Create-A-Pagination-In-PHP-125/index.html">Back to How To Create A Pagination In PHP</a>
</body>
</html>
')"/>
       &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 tbldatasource where 1=1 {$where} order by id desc";
}
$pagerstring = Pages($linkSQL, PER_PAGE_ROWS, 'manage_datasource.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>