[xoops-cvslog 1753] CVS update: xoops2jp/html/modules/legacyRender/admin/forms

Back to archive index

Minahito minah****@users*****
2006年 1月 14日 (土) 21:14:58 JST


Index: xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php:1.1.2.2
--- xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php:1.1.2.1	Sat Jan 14 02:31:14 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php	Sat Jan 14 21:14:58 2006
@@ -31,22 +31,6 @@
 		if ($this->mSort > TPLSET_SORT_KEY_MAXVALUE) {
 			$this->mSort = TPLSET_SORT_KEY_DEFAULT;
 		}
-	
-		if (isset($_REQUEST['tplset_id'])) {
-			$this->_mCriteria->add(new Criteria('tplset_id', array(XOBJ_DTYPE_INT, xoops_getrequest('tplset_id'))));
-		}
-	
-		if (isset($_REQUEST['name'])) {
-			$this->_mCriteria->add(new Criteria('name', array(XOBJ_DTYPE_STRING, xoops_getrequest('name'))));
-		}
-	
-		if (isset($_REQUEST['desc'])) {
-			$this->_mCriteria->add(new Criteria('desc', array(XOBJ_DTYPE_STRING, xoops_getrequest('desc'))));
-		}
-	
-		if (isset($_REQUEST['lock'])) {
-			$this->_mCriteria->add(new Criteria('lock', array(XOBJ_DTYPE_BOOL, xoops_getrequest('lock'))));
-		}
 	}
 
 	function getSort()
@@ -72,6 +56,10 @@
 	
 		return $criteria;
 	}
+	
+	function setNavi(&$navi)
+	{
+	}
 }
 
 ?>
Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.3
--- xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.2	Sat Jan 14 14:27:37 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php	Sat Jan 14 21:14:58 2006
@@ -27,10 +27,16 @@
 		TPLFILE_SORT_KEY_TPL_LASTIMPORTED => 'tpl_lastimported',
 		TPLFILE_SORT_KEY_TPL_TYPE => 'tpl_type'
 	);
+	
 	var $_mCriteria = null;
+	
+	var $_mAttributes = array();
+	
+	var $_mNavi = null;
 
 	function LegacyRender_TplfileFilterForm()
 	{
+		$this->_mNavi =& $navi;
 		$this->_mCriteria =& new CriteriaCompo();
 	}
 
@@ -43,18 +49,22 @@
 		}
 	
 		if (isset($_REQUEST['tpl_module'])) {
+			$this->_mAttributes['tpl_module'] = xoops_getrequest('tpl_module');
 			$this->_mCriteria->add(new Criteria('tpl_module', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_module'))));
 		}
 	
 		if (isset($_REQUEST['tpl_tplset'])) {
+			$this->_mAttributes['tpl_tplset'] = xoops_getrequest('tpl_tplset');
 			$this->_mCriteria->add(new Criteria('tpl_tplset', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_tplset'))));
 		}
 	
 		if (isset($_REQUEST['tpl_file'])) {
+			$this->_mAttributes['tpl_file'] = xoops_getrequest('tpl_file');
 			$this->_mCriteria->add(new Criteria('tpl_file', array(XOBJ_DTYPE_STRING, "%" . xoops_getrequest('tpl_file') . "%"), 'LIKE'));
 		}
 	
 		if (isset($_REQUEST['tpl_type'])) {
+			$this->_mAttributes['tpl_type'] = xoops_getrequest('tpl_type');
 			$this->_mCriteria->add(new Criteria('tpl_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_type'))));
 		}
 	}
@@ -82,6 +92,15 @@
 	
 		return $criteria;
 	}
+	
+	function setNavi(&$navi)
+	{
+		if (count($this->_mAttributes) > 0) {
+			foreach ($this->_mAttributes as $key => $value) {
+				$navi->addExtra($key, $value);
+			}
+		}
+	}
 }
 
 ?>


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