[xoops-cvslog 1653] CVS update: xoops2jp/html/modules/user/admin/actions

Back to archive index

Minahito minah****@users*****
2006年 1月 11日 (水) 20:51:28 JST


Index: xoops2jp/html/modules/user/admin/actions/UserMailjobListAction.class.php
diff -u /dev/null xoops2jp/html/modules/user/admin/actions/UserMailjobListAction.class.php:1.1.2.1
--- /dev/null	Wed Jan 11 20:51:28 2006
+++ xoops2jp/html/modules/user/admin/actions/UserMailjobListAction.class.php	Wed Jan 11 20:51:28 2006
@@ -0,0 +1,39 @@
+<?php
+// $Id: UserMailjobListAction.class.php,v 1.1.2.1 2006/01/11 11:51:28 minahito Exp $
+
+require_once XOOPS_ROOT_PATH . "/class/XCube_PageNavigator.class.php";
+require_once XOOPS_MODULE_PATH . "/user/admin/forms/MailjobFilterForm.class.php";
+
+class UserMailjobListAction extends UserAction
+{
+	var $mObjects = array();
+	var $mFilter = null;
+	var $mPageNavi = null;
+
+	function getDefaultView(&$controller, &$xoopsUser)
+	{
+		$this->mFilter =& new User_MailjobFilterForm();
+		$this->mFilter->fetch();
+	
+		$handler =& xoops_getmodulehandler('mailjob');
+	
+		$total = $handler->getCount($this->mFilter->getCriteria());
+	
+		$this->mPageNavi =& new XCube_PageNavigator("./index.php?action=MailjobList", $total, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE);
+		$this->mPageNavi->fetch();
+	
+		$criteria = $this->mFilter->getCriteria($this->mPageNavi->getStart(), $this->mPageNavi->getPerpage());
+		$this->mObjects =& $handler->getObjects($criteria);
+
+		return USER_FRAME_VIEW_INDEX;
+	}
+
+	function executeViewIndex(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("mailjob_list.html");
+		$render->setAttribute('objects', $this->mObjects);
+		$render->setAttribute('pageNavi', $this->mPageNavi);
+	}
+}
+
+?>


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