[xoops-cvslog 314] CVS update: xoops2jp/html/modules/xoopspartners

Back to archive index

onokazu onoka****@users*****
2005年 8月 3日 (水) 21:40:02 JST


Index: xoops2jp/html/modules/xoopspartners/index.php
diff -u xoops2jp/html/modules/xoopspartners/index.php:1.3 xoops2jp/html/modules/xoopspartners/index.php:1.4
--- xoops2jp/html/modules/xoopspartners/index.php:1.3	Sat Jun 11 11:32:57 2005
+++ xoops2jp/html/modules/xoopspartners/index.php	Wed Aug  3 21:40:02 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: index.php,v 1.3 2005/06/11 02:32:57 onokazu Exp $
+// $Id: index.php,v 1.4 2005/08/03 12:40:02 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -32,15 +32,8 @@
 $xoopsOption['template_main'] = 'xoopspartners_index.html';
 include XOOPS_ROOT_PATH."/header.php";
 $part = new PartnerSystem();
-if (! isset($start)){
-    $start=0;
-}
+$start = isset($_GET['start']) ? intval($_GET['start']) : 0;
 
-if ( !$start or $start == 0 and $xoopsModuleConfig['modlimit'] != 0) {
-    $init = 0;
-} elseif ( $start != 0 and $xoopsModuleConfig['modlimit'] != 0) {
-    $init = $start;
-}
 $admin = 0;
 if ($xoopsUser) {
     $xoopsTpl->assign("partner_join" ,"<a href='join.php'><b>"._MD_JOIN."</b></a>");
@@ -48,7 +41,7 @@
 $query = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("partners")." WHERE status=1");
 list($numrows) = $xoopsDB->fetchrow($query);
 if( $xoopsModuleConfig['modlimit'] != 0 ) {
-    $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd'],$xoopsModuleConfig['modlimit'],$init);
+    $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd'],$xoopsModuleConfig['modlimit'],$start);
 }else{
     $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd']);
 }
@@ -82,7 +75,7 @@
     $partner[$i]['title']        = $array_partners[$i]['title'];
     $partner[$i]['description']  = $array_partners[$i]['description'];
     if ($xoopsUserIsAdmin) {
-        $partner[$i]['admin_option']  = "<br />[<a href='admin/index.php?op=editPartner&amp;id=".$array_partners[$i]["id"]."'>"._MD_EDIT."</a>] [<a href='admin/index.php?op=delPartner&id=".$array_partners[$i]["id"]."'>"._MD_DELETE."</a>]";
+        $partner[$i]['admin_option']  = "<br />[<a href='admin/index.php?op=editPartner&amp;id=".$array_partners[$i]["id"]."'>"._MD_EDIT."</a>] [<a href='admin/index.php?op=delPartner&amp;id=".$array_partners[$i]["id"]."'>"._MD_DELETE."</a>]";
     }
     $xoopsTpl->append("partners", $partner[$i]);
 }
Index: xoops2jp/html/modules/xoopspartners/join.php
diff -u xoops2jp/html/modules/xoopspartners/join.php:1.3 xoops2jp/html/modules/xoopspartners/join.php:1.4
--- xoops2jp/html/modules/xoopspartners/join.php:1.3	Sat Jun 11 11:32:57 2005
+++ xoops2jp/html/modules/xoopspartners/join.php	Wed Aug  3 21:40:02 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: join.php,v 1.3 2005/06/11 02:32:57 onokazu Exp $
+// $Id: join.php,v 1.4 2005/08/03 12:40:02 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //


xoops-cvslog メーリングリストの案内
Back to archive index