From: <ki...@us...> - 2010-06-02 13:17:20
|
Revision: 522 http://xc-tokai.svn.sourceforge.net/xc-tokai/?rev=522&view=rev Author: kilica Date: 2010-06-02 13:17:12 +0000 (Wed, 02 Jun 2010) Log Message: ----------- Modified Paths: -------------- modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/README.txt modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/actions/PollDetailAction.class.php modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/xoops_version.php Modified: modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/README.txt =================================================================== --- modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/README.txt 2010-05-30 13:00:44 UTC (rev 521) +++ modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/README.txt 2010-06-02 13:17:12 UTC (rev 522) @@ -18,6 +18,9 @@ \x8DX\x90V\x97\x9A\x97\xF0 -------- +0.22(2010.06.02) +\x81E\x83o\x83O\x8FC\x90\xB3\x81iThanks chipy\x81j + 0.21(2010.01.15) \x81E\x89p\x8C\xEA\x82̌\xBE\x8C\xEA\x83t\x83@\x83C\x83\x8B\x82\xF5 Modified: modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/actions/PollDetailAction.class.php =================================================================== --- modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/actions/PollDetailAction.class.php 2010-05-30 13:00:44 UTC (rev 521) +++ modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/actions/PollDetailAction.class.php 2010-06-02 13:17:12 UTC (rev 522) @@ -7,7 +7,7 @@ if(!defined('XOOPS_ROOT_PATH')) { - exit; + exit; } require_once BIZPOLL_TRUST_PATH . '/class/AbstractListAction.class.php'; @@ -22,56 +22,56 @@ var $mEnqId = 0; var $mChart = array(); - /** - * _getId - * @param void - * @return int - **/ - protected function _getId() - { - if($this->mRoot->mContext->mRequest->getRequest('enq_id')){ - return intval($this->mRoot->mContext->mRequest->getRequest('enq_id')); - } - else{ + /** + * _getId + * @param void + * @return int + **/ + protected function _getId() + { + if($this->mRoot->mContext->mRequest->getRequest('enq_id')){ + return intval($this->mRoot->mContext->mRequest->getRequest('enq_id')); + } + else{ $this->mRoot->mController->executeRedirect('./index.php?action=EnqList', 1, _MD_BIZPOLL_ERROR_ENQ_ID_REQUIRED); - } - } + } + } - /** - * &_getHandler - * @param void - * @return Bizpoll_PollHandler - **/ - protected function &_getHandler() - { - $handler =& $this->mAsset->getObject('handler', 'poll'); - return $handler; - } + /** + * &_getHandler + * @param void + * @return Bizpoll_PollHandler + **/ + protected function &_getHandler() + { + $handler =& $this->mAsset->getObject('handler', 'poll'); + return $handler; + } - /** - * &_getFilterForm - * - * @param void - * - * @return Bizpoll_PollFilterForm - **/ - protected function &_getFilterForm() - { - // $filter =& new Bizpoll_PollFilterForm(); - $filter =& $this->mAsset->getObject('filter', 'poll',false); - $filter->prepare($this->_getPageNavi(), $this->_getHandler()); - return $filter; - } + /** + * &_getFilterForm + * + * @param void + * + * @return Bizpoll_PollFilterForm + **/ + protected function &_getFilterForm() + { + // $filter =& new Bizpoll_PollFilterForm(); + $filter =& $this->mAsset->getObject('filter', 'poll',false); + $filter->prepare($this->_getPageNavi(), $this->_getHandler()); + return $filter; + } - /** - * _getBaseUrl - * @param void - * @return string - **/ - protected function _getBaseUrl() - { - return './index.php?action=PollList'; - } + /** + * _getBaseUrl + * @param void + * @return string + **/ + protected function _getBaseUrl() + { + return './index.php?action=PollDetail'; + } /** * @public @@ -128,22 +128,22 @@ return BIZPOLL_FRAME_VIEW_INDEX; } - /** - * executeViewIndex - * @param XCube_RenderTarget &$render - * @return void - **/ - public function executeViewIndex(/*** XCube_RenderTarget ***/ &$render) - { - $render->setTemplateName($this->mAsset->mDirname . '_poll_detail.html'); - $render->setAttribute('objects', $this->mObjects); - $render->setAttribute('enq', $this->mEnq); - $render->setAttribute('chart', $this->mChart); - $render->setAttribute('pageNavi', $this->mFilter->mNavi); - $render->setAttribute('chartSetting', explode(',', $this->getConfig('chart'))); - rsort($this->mChart['count']); - $render->setAttribute('chartMax', array_shift($this->mChart['count'])); - } + /** + * executeViewIndex + * @param XCube_RenderTarget &$render + * @return void + **/ + public function executeViewIndex(/*** XCube_RenderTarget ***/ &$render) + { + $render->setTemplateName($this->mAsset->mDirname . '_poll_detail.html'); + $render->setAttribute('objects', $this->mObjects); + $render->setAttribute('enq', $this->mEnq); + $render->setAttribute('chart', $this->mChart); + $render->setAttribute('pageNavi', $this->mFilter->mNavi); + $render->setAttribute('chartSetting', explode(',', $this->getConfig('chart'))); + rsort($this->mChart['count']); + $render->setAttribute('chartMax', array_shift($this->mChart['count'])); + } } ?> Modified: modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/xoops_version.php =================================================================== --- modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/xoops_version.php 2010-05-30 13:00:44 UTC (rev 521) +++ modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/xoops_version.php 2010-06-02 13:17:12 UTC (rev 522) @@ -7,12 +7,12 @@ if(!defined('XOOPS_ROOT_PATH')) { - exit; + exit; } if(!defined('BIZPOLL_TRUST_PATH')) { - define('BIZPOLL_TRUST_PATH',XOOPS_TRUST_PATH . '/modules/bizpoll'); + define('BIZPOLL_TRUST_PATH',XOOPS_TRUST_PATH . '/modules/bizpoll'); } require_once BIZPOLL_TRUST_PATH . '/class/BizpollUtils.class.php'; @@ -21,7 +21,7 @@ // Define a basic manifesto. // $modversion['name'] = _MI_BIZPOLL_LANG_BIZPOLL; -$modversion['version'] = 0.21; +$modversion['version'] = 0.22; $modversion['description'] = _MI_BIZPOLL_DESC_BIZPOLL; $modversion['author'] = _MI_BIZPOLL_LANG_AUTHOR; $modversion['credits'] = _MI_BIZPOLL_LANG_CREDITS; @@ -34,27 +34,27 @@ $modversion['cube_style'] = true; $modversion['legacy_installer'] = array( - 'installer' => array( - 'class' => 'Installer', - 'namespace' => 'Bizpoll', - 'filepath' => BIZPOLL_TRUST_PATH . '/admin/class/installer/BizpollInstaller.class.php' - ), - 'uninstaller' => array( - 'class' => 'Uninstaller', - 'namespace' => 'Bizpoll', - 'filepath' => BIZPOLL_TRUST_PATH . '/admin/class/installer/BizpollUninstaller.class.php' - ), - 'updater' => array( - 'class' => 'Updater', - 'namespace' => 'Bizpoll', - 'filepath' => BIZPOLL_TRUST_PATH . '/admin/class/installer/BizpollUpdater.class.php' - ) + 'installer' => array( + 'class' => 'Installer', + 'namespace' => 'Bizpoll', + 'filepath' => BIZPOLL_TRUST_PATH . '/admin/class/installer/BizpollInstaller.class.php' + ), + 'uninstaller' => array( + 'class' => 'Uninstaller', + 'namespace' => 'Bizpoll', + 'filepath' => BIZPOLL_TRUST_PATH . '/admin/class/installer/BizpollUninstaller.class.php' + ), + 'updater' => array( + 'class' => 'Updater', + 'namespace' => 'Bizpoll', + 'filepath' => BIZPOLL_TRUST_PATH . '/admin/class/installer/BizpollUpdater.class.php' + ) ); $modversion['disable_legacy_2nd_installer'] = false; $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; $modversion['tables'] = array( -// '{prefix}_{dirname}_xxxx', +// '{prefix}_{dirname}_xxxx', ##[cubson:tables] '{prefix}_{dirname}_enq', '{prefix}_{dirname}_choice', @@ -67,25 +67,25 @@ // $modversion['templates'] = array( /* - array( - 'file' => '{dirname}_xxx.html', - 'description' => _MI_BIZPOLL_TPL_XXX - ), + array( + 'file' => '{dirname}_xxx.html', + 'description' => _MI_BIZPOLL_TPL_XXX + ), */ ##[cubson:templates] - array('file' => '{dirname}_enq_list.html','description' => _MI_BIZPOLL_TPL_ENQ_LIST), - array('file' => '{dirname}_enq_edit.html','description' => _MI_BIZPOLL_TPL_ENQ_EDIT), - array('file' => '{dirname}_enq_delete.html','description' => _MI_BIZPOLL_TPL_ENQ_DELETE), - array('file' => '{dirname}_enq_view.html','description' => _MI_BIZPOLL_TPL_ENQ_VIEW), - array('file' => '{dirname}_poll_list.html','description' => _MI_BIZPOLL_TPL_POLL_LIST), - array('file' => '{dirname}_poll_edit.html','description' => _MI_BIZPOLL_TPL_POLL_EDIT), - array('file' => '{dirname}_poll_delete.html','description' => _MI_BIZPOLL_TPL_POLL_DELETE), - array('file' => '{dirname}_poll_detail.html','description' => _MI_BIZPOLL_TPL_POLL_VIEW), - array('file' => '{dirname}_choice_list.html','description' => _MI_BIZPOLL_TPL_CHOICE_LIST), - array('file' => '{dirname}_choice_edit.html','description' => _MI_BIZPOLL_TPL_CHOICE_EDIT), - array('file' => '{dirname}_choice_delete.html','description' => _MI_BIZPOLL_TPL_CHOICE_DELETE), - array('file' => '{dirname}_choice_view.html','description' => _MI_BIZPOLL_TPL_CHOICE_VIEW), - array('file' => '{dirname}_enq_rss.html','description' => _MI_BIZPOLL_TPL_ENQ_RSS), + array('file' => '{dirname}_enq_list.html','description' => _MI_BIZPOLL_TPL_ENQ_LIST), + array('file' => '{dirname}_enq_edit.html','description' => _MI_BIZPOLL_TPL_ENQ_EDIT), + array('file' => '{dirname}_enq_delete.html','description' => _MI_BIZPOLL_TPL_ENQ_DELETE), + array('file' => '{dirname}_enq_view.html','description' => _MI_BIZPOLL_TPL_ENQ_VIEW), + array('file' => '{dirname}_poll_list.html','description' => _MI_BIZPOLL_TPL_POLL_LIST), + array('file' => '{dirname}_poll_edit.html','description' => _MI_BIZPOLL_TPL_POLL_EDIT), + array('file' => '{dirname}_poll_delete.html','description' => _MI_BIZPOLL_TPL_POLL_DELETE), + array('file' => '{dirname}_poll_detail.html','description' => _MI_BIZPOLL_TPL_POLL_VIEW), + array('file' => '{dirname}_choice_list.html','description' => _MI_BIZPOLL_TPL_CHOICE_LIST), + array('file' => '{dirname}_choice_edit.html','description' => _MI_BIZPOLL_TPL_CHOICE_EDIT), + array('file' => '{dirname}_choice_delete.html','description' => _MI_BIZPOLL_TPL_CHOICE_DELETE), + array('file' => '{dirname}_choice_view.html','description' => _MI_BIZPOLL_TPL_CHOICE_VIEW), + array('file' => '{dirname}_enq_rss.html','description' => _MI_BIZPOLL_TPL_ENQ_RSS), ##[/cubson:templates] ); @@ -96,13 +96,13 @@ $modversion['adminindex'] = 'admin/index.php'; $modversion['adminmenu'] = array( /* - array( - 'title' => _MI_BIZPOLL_LANG_XXXX, - 'link' => 'admin/index.php?action=xxx', - 'keywords' => _MI_BIZPOLL_KEYWORD_XXX, - 'show' => true, - 'absolute' => false - ), + array( + 'title' => _MI_BIZPOLL_LANG_XXXX, + 'link' => 'admin/index.php?action=xxx', + 'keywords' => _MI_BIZPOLL_KEYWORD_XXX, + 'show' => true, + 'absolute' => false + ), */ ##[cubson:adminmenu] ##[/cubson:adminmenu] @@ -115,10 +115,10 @@ $modversion['hasSearch'] = 0; $modversion['sub'] = array( /* - array( - 'name' => _MI_BIZPOLL_LANG_SUB_XXX, - 'url' => 'index.php?action=XXX' - ), + array( + 'name' => _MI_BIZPOLL_LANG_SUB_XXX, + 'url' => 'index.php?action=XXX' + ), */ ##[cubson:submenu] ##[/cubson:submenu] @@ -128,79 +128,79 @@ // Config setting // $modversion['config'] = array( - array( - 'name' => 'gr_id', - 'title' => "_MI_BIZPOLL_TITLE_GR_ID", - 'description' => "_MI_BIZPOLL_DESC_GR_ID", - 'formtype' => 'textbox', - 'valuetype' => 'int', - 'options' => array(), - 'default' => 0 - ), - array( - 'name' => 'css_file', - 'title' => "_MI_BIZPOLL_TITLE_CSS_FILE", - 'description' => "_MI_BIZPOLL_DESC_CSS_FILE", - 'formtype' => 'textbox', - 'valuetype' => 'text', - 'options' => array(), - 'default' => '/modules/'. $myDirName. '/bizpoll.css' - ), - array( - 'name' => 'permit_title', - 'title' => "_MI_BIZPOLL_TITLE_PERMIT", - 'description' => "_MI_BIZPOLL_DESC_PERMIT", - 'formtype' => 'textbox', - 'valuetype' => 'text', - 'options' => array(), - 'default' => 'viewer|poster|editor|viewer' - ), - array( - 'name' => 'show_rss', - 'title' => "_MI_BIZPOLL_TITLE_SHOW_RSS", - 'description' => "_MI_BIZPOLL_DESC_SHOW_RSS", - 'formtype' => 'yesno', - 'valuetype' => 'int', - 'options' => array(), - 'default' => '1' - ), - array( - 'name' => 'editor', - 'title' => "_MI_BIZPOLL_TITLE_EDITOR", - 'description' => "_MI_BIZPOLL_DESC_EDITOR", - 'formtype' => 'select', - 'valuetype' => 'text', - 'options' => array("bbcode"=>"bbcode", "fckeditor"=>"fckeditor"), - 'default' => 'bbcode' - ), - array( - 'name' => 'ip_period', - 'title' => "_MI_BIZPOLL_TITLE_IP_PERIOD", - 'description' => "_MI_BIZPOLL_DESC_IP_PERIOD", - 'formtype' => 'textbox', - 'valuetype' => 'int', - 'options' => array(), - 'default' => '24' - ), - array( - 'name' => 'chart', - 'title' => "_MI_BIZPOLL_TITLE_CHART", - 'description' => "_MI_BIZPOLL_DESC_CHART", - 'formtype' => 'textbox', - 'valuetype' => 'text', - 'options' => array(), - 'default' => 'p,400,100' - ), + array( + 'name' => 'gr_id', + 'title' => "_MI_BIZPOLL_TITLE_GR_ID", + 'description' => "_MI_BIZPOLL_DESC_GR_ID", + 'formtype' => 'textbox', + 'valuetype' => 'int', + 'options' => array(), + 'default' => 0 + ), + array( + 'name' => 'css_file', + 'title' => "_MI_BIZPOLL_TITLE_CSS_FILE", + 'description' => "_MI_BIZPOLL_DESC_CSS_FILE", + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'options' => array(), + 'default' => '/modules/'. $myDirName. '/bizpoll.css' + ), + array( + 'name' => 'permit_title', + 'title' => "_MI_BIZPOLL_TITLE_PERMIT", + 'description' => "_MI_BIZPOLL_DESC_PERMIT", + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'options' => array(), + 'default' => 'viewer|poster|editor|viewer' + ), + array( + 'name' => 'show_rss', + 'title' => "_MI_BIZPOLL_TITLE_SHOW_RSS", + 'description' => "_MI_BIZPOLL_DESC_SHOW_RSS", + 'formtype' => 'yesno', + 'valuetype' => 'int', + 'options' => array(), + 'default' => '1' + ), + array( + 'name' => 'editor', + 'title' => "_MI_BIZPOLL_TITLE_EDITOR", + 'description' => "_MI_BIZPOLL_DESC_EDITOR", + 'formtype' => 'select', + 'valuetype' => 'text', + 'options' => array("bbcode"=>"bbcode", "fckeditor"=>"fckeditor"), + 'default' => 'bbcode' + ), + array( + 'name' => 'ip_period', + 'title' => "_MI_BIZPOLL_TITLE_IP_PERIOD", + 'description' => "_MI_BIZPOLL_DESC_IP_PERIOD", + 'formtype' => 'textbox', + 'valuetype' => 'int', + 'options' => array(), + 'default' => '24' + ), + array( + 'name' => 'chart', + 'title' => "_MI_BIZPOLL_TITLE_CHART", + 'description' => "_MI_BIZPOLL_DESC_CHART", + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'options' => array(), + 'default' => 'p,400,100' + ), /* - array( - 'name' => 'xxxx', - 'title' => '_MI_BIZPOLL_TITLE_XXXX', - 'description' => '_MI_BIZPOLL_DESC_XXXX', - 'formtype' => 'xxxx', - 'valuetype' => 'xxx', - 'options' => array(xxx => xxx,xxx => xxx), - 'default' => 0 - ), + array( + 'name' => 'xxxx', + 'title' => '_MI_BIZPOLL_TITLE_XXXX', + 'description' => '_MI_BIZPOLL_DESC_XXXX', + 'formtype' => 'xxxx', + 'valuetype' => 'xxx', + 'options' => array(xxx => xxx,xxx => xxx), + 'default' => 0 + ), */ ##[cubson:config] ##[/cubson:config] @@ -210,42 +210,42 @@ // Block setting // $modversion['blocks'] = array( - 1 => array( - 'func_num' => 1, - 'file' => 'EnqBlock.class.php', - 'class' => 'EnqBlock', - 'name' => _MI_BIZPOLL_BLOCK_NAME_ENQ, - 'description' => _MI_BIZPOLL_BLOCK_DESC_ENQ, - 'options' => '5|', - 'template' => '{dirname}_block_enq.html', - 'show_all_module' => true, - 'can_clone' => true, - 'visible_any' => false - ), - 2 => array( - 'func_num' => 2, - 'file' => 'PollOneBlock.class.php', - 'class' => 'PollOneBlock', - 'name' => _MI_BIZPOLL_BLOCK_NAME_POLLONE, - 'description' => _MI_BIZPOLL_BLOCK_DESC_POLLONE, - 'options' => '0|', - 'template' => '{dirname}_block_pollone.html', - 'show_all_module' => true, - 'can_clone' => true, - 'visible_any' => false - ), - 3 => array( - 'func_num' => 3, - 'file' => 'PollNewBlock.class.php', - 'class' => 'PollNewBlock', - 'name' => _MI_BIZPOLL_BLOCK_NAME_POLLNEW, - 'description' => _MI_BIZPOLL_BLOCK_DESC_POLLNEW, - 'options' => '', - 'template' => '{dirname}_block_pollnew.html', - 'show_all_module' => true, - 'can_clone' => true, - 'visible_any' => false - ), + 1 => array( + 'func_num' => 1, + 'file' => 'EnqBlock.class.php', + 'class' => 'EnqBlock', + 'name' => _MI_BIZPOLL_BLOCK_NAME_ENQ, + 'description' => _MI_BIZPOLL_BLOCK_DESC_ENQ, + 'options' => '5|', + 'template' => '{dirname}_block_enq.html', + 'show_all_module' => true, + 'can_clone' => true, + 'visible_any' => false + ), + 2 => array( + 'func_num' => 2, + 'file' => 'PollOneBlock.class.php', + 'class' => 'PollOneBlock', + 'name' => _MI_BIZPOLL_BLOCK_NAME_POLLONE, + 'description' => _MI_BIZPOLL_BLOCK_DESC_POLLONE, + 'options' => '0|', + 'template' => '{dirname}_block_pollone.html', + 'show_all_module' => true, + 'can_clone' => true, + 'visible_any' => false + ), + 3 => array( + 'func_num' => 3, + 'file' => 'PollNewBlock.class.php', + 'class' => 'PollNewBlock', + 'name' => _MI_BIZPOLL_BLOCK_NAME_POLLNEW, + 'description' => _MI_BIZPOLL_BLOCK_DESC_POLLNEW, + 'options' => '', + 'template' => '{dirname}_block_pollnew.html', + 'show_all_module' => true, + 'can_clone' => true, + 'visible_any' => false + ), ##[cubson:block] ##[/cubson:block] ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |