本文整理汇总了PHP中Navigation::mysqlStart方法的典型用法代码示例。如果您正苦于以下问题:PHP Navigation::mysqlStart方法的具体用法?PHP Navigation::mysqlStart怎么用?PHP Navigation::mysqlStart使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Navigation
的用法示例。
在下文中一共展示了Navigation::mysqlStart方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Navigation
$datelink=$f->getLink($values['date'], "",array('order_by'=>'date', 'order'=>$order) + $currentVars);
$verified=$f->getLink($values['verified'], "",array('order_by'=>'verified', 'order'=>$order) + $currentVars);
/***************
* navigation *
**************/
$nav=new Navigation($f);
$nav->currentSite($get->site());
$nav->nElements($n);
$nav->itemsPerSite(NUMBERS_PER_SIDE);
$nav->targetUrl($sitename);
$nav->additionalUrlParams(array('view'=>$get->view(), 'order_by' =>$get->order_by(), 'order'=>$get->order()));
$exploits=$e->mySqlSelectByCategory($get->view(),$nav->mysqlStart(), $nav->itemsPerSite(),$orderBy,$order); //anpassen
/*******order*******************/
$viewByCategory=$f->getLink($c->name(), $sitename, array("view"=> $c->id()));
echo "<div class=\"exploit-category\">\n";
echo "<h4 class=\"category-title\">$viewByCategory</h4><table class=\"exploit-table\">\n";
echo "<tr><th>$datelink</th><th>DL</th><th>$verified</th><th>Description</th><th>$hitlink</th><th>$platformlink</th><th>$authorlink</th></tr>";
$ctr=0;
foreach ($exploits as $e){
$ctr%2==0 ? $modulo="table-gerade" : $modulo="table-ungerade";
$viewExploit=$f->getLink($e->title(), "ViewExploit.php", array("view"=> $e->id()));
$viewByAuthor=$f->getLink($e->autor(), "ViewByAuthor.php", array("view"=>1));
$viewByPlatform=$f->getLink($e->loadPlatform(), "ViewByPlatform.php", array("view"=>$e->platform()));
$download="";
示例2: Navigation
* navigation *
**************/
$nav=new Navigation($f);
$nav->currentSite($get->site());
$nav->nElements($n);
$nav->itemsPerSite(15);
$nav->targetUrl($sitename);
$nav->additionalUrlParams(array('view'=>$get->view()));
//-----lsExploits--------------------------------------------------------------------------------------------------------------------------------------------------------------
$e= new pExploit();
$e->dbh($dbh);
//$c=new pCategory();
$p=new pPlatform();
$p->dbh($dbh);
$p->mysqlSelect($get->view());
$exploits=$e->mySqlSelectByPlatform($get->view(),$nav->mysqlStart(), $nav->itemsPerSite()); //anpassen
$viewByCategory=$f->getLink($p->name(), $sitename, array("view"=> $p->id()));
echo "<div class=\"exploit-category\">\n";
echo "<h4 class=\"category-title\">$viewByCategory</h4><table>\n";
echo "<tr><th>Date</th><th>DL</th><th>V</th><th>Description</th><th>DL's</th><th>Category</th><th>Author</th></tr>";
$ctr=0;
foreach ($exploits as $e){
$ctr%2==0 ? $modulo="table-gerade" : $modulo="table-ungerade";
$viewExploit=$f->getLink($e->title(), "ViewExploit.php", array("view"=> $e->id()));
$viewByAuthor=$f->getLink($e->autor(), "ViewByAuthor.php", array("view"=>1));