mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
|
|
@ -22,6 +22,7 @@ class pollAdminView extends poll
|
|||
$search_target = trim(Context::get('search_target'));
|
||||
$search_keyword = trim(Context::get('search_keyword'));
|
||||
|
||||
$args = new stdClass();
|
||||
if($search_target && $search_keyword)
|
||||
{
|
||||
switch($search_target)
|
||||
|
|
@ -39,7 +40,6 @@ class pollAdminView extends poll
|
|||
}
|
||||
}
|
||||
// Options to get a list of pages
|
||||
$args = new stdClass();
|
||||
$args->page = Context::get('page');
|
||||
$args->list_count = 50; // The number of posts to show on one page
|
||||
$args->page_count = 10; // The number of pages to display in the page navigation
|
||||
|
|
@ -90,7 +90,7 @@ class pollAdminView extends poll
|
|||
Context::set('module_list', $module_list);
|
||||
|
||||
$security = new Security();
|
||||
$security->encodeHTML('poll_list..title');
|
||||
$security->encodeHTML('poll_list..title', 'poll_list..nick_name');
|
||||
// Set a template
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('poll_list');
|
||||
|
|
|
|||
|
|
@ -1,8 +1,16 @@
|
|||
<query id="getPollListWithMember" action="select">
|
||||
<tables>
|
||||
<table name="poll_title" alias="P" />
|
||||
<table name="poll" alias="P2" />
|
||||
<table name="member" alias="M" />
|
||||
<table name="poll" alias="P2" type="left join">
|
||||
<conditions>
|
||||
<condition operation="equal" column="P2.poll_srl" var="P.poll_srl" />
|
||||
</conditions>
|
||||
</table>
|
||||
<table name="member" alias="M" type="left outer join">
|
||||
<conditions>
|
||||
<condition operation="equal" column="P2.member_srl" var="M.member_srl" />
|
||||
</conditions>
|
||||
</table>
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="P.poll_srl" alias="poll_srl" />
|
||||
|
|
@ -17,15 +25,14 @@
|
|||
<column name="M.*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
|
||||
<condition operation="in" column="poll_index_srl" var="pollIndexSrlList" filter="number" pipe="and" />
|
||||
|
||||
<group pipe="and">
|
||||
<condition operation="equal" column="P.member_srl" var="M.member_srl" notnull="notnull" />
|
||||
<condition operation="equal" column="P2.member_srl" var="M.member_srl" notnull="notnull" pipe="and" />
|
||||
<condition operation="equal" column="P2.poll_srl" var="P.poll_srl" notnull="notnull" pipe="and" />
|
||||
<condition operation="in" column="poll_index_srl" var="pollIndexSrlList" filter="number" pipe="and" />
|
||||
<condition operation="like" column="P.title" var="s_title" pipe="or"/>
|
||||
<condition operation="like_prefix" column="P.regdate" var="s_regdate" pipe="or" />
|
||||
<condition operation="like_prefix" column="P.ipaddress" var="s_ipaddress" pipe="or" />
|
||||
</group>
|
||||
<condition operation="like" column="P.title" var="s_title" pipe="or"/>
|
||||
<condition operation="like_prefix" column="P.regdate" var="s_regdate" pipe="or" />
|
||||
<condition operation="like_prefix" column="P.ipaddress" var="s_ipaddress" pipe="or" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="P.list_order" order="asc" />
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
.poll_table td.poll_content div.item_text strong{font-weight:bold;color:#000000;font-family:돋움;font-size:12px}
|
||||
.poll_table td.poll_content table.item_bar_table{width:100%;table-layout:fixed;border-bottom:1px solid #EDEDED;margin-top:10px}
|
||||
.poll_table td.poll_content table.noborder{border-bottom:none;margin-bottom:10px}
|
||||
.poll_table td.poll_content table.item_bar_table td.bar{padding:0 0 5px 0;background:url(../images/back_bar.png) repeat-x left 4px}
|
||||
.poll_table td.poll_content table.item_bar_table td.bar{padding:0 0 5px 0;background:url(../images/back_bar.png) repeat-x left center}
|
||||
.poll_table td.poll_content table.item_bar_table td.bar img{width:100%;height:6px}
|
||||
.poll_table td.poll_content table.item_bar_table td.status{font-size:.9em;padding-bottom:5px;color:#636363;padding-left:15px}
|
||||
.poll_table td.poll_content table.item_bar_table td.status strong{font-weight:bold;color:#58C011}
|
||||
|
|
|
|||
2
modules/poll/skins/default/css/poll.min.css
vendored
2
modules/poll/skins/default/css/poll.min.css
vendored
|
|
@ -1 +1 @@
|
|||
.poll_table{table-layout:fixed;width:100%;padding:0;border:0}.poll_table td{padding:0;margin:0}.poll_table td.h{background:url(../images/top_bg.png) repeat-x left top}.poll_table td.title{height:28px;background:url(../images/top_title_bg.png) repeat-x left top;padding:0 20px 0 20px;color:#c3c3c4}.poll_table td.title strong{color:#fff;font-weight:bold}.poll_table td.l{border-left:1px solid #e5e5e5}.poll_table td.r{border-right:1px solid #e5e5e5}.poll_table td.poll_content{padding:18px 13px 18px 13px}.poll_table td.poll_button{border:1px solid #e5e5e5;border-bottom:0;background-color:#f6f6f5}.poll_table td.poll_button div{padding:5px 0 2px 0;text-align:center}.poll_table td.b{background-color:#f6f6f5;height:7px}.poll_table td.b img{width:100%;height:6px;border-bottom:1px solid #e5e5e5}.poll_table td.bb{height:7px}.poll_table td.bb img{width:100%;height:6px;border-bottom:1px solid #e5e5e5}.poll_table td.poll_content div.title{color:#000;background-color:#f5f5f5;border-top:2px solid #c1c0bd;border-bottom:2px solid #c1c0bd;font-weight:bold;padding:7px 0 7px 10px;margin-bottom:10px}.poll_table td.poll_content div.item_text{color:#636363;padding:0 10px 0 10px;margin-top:10px}.poll_table td.poll_content div.item_text strong{font-weight:bold;color:#000;font-family:돋움;font-size:12px}.poll_table td.poll_content table.item_bar_table{width:100%;table-layout:fixed;border-bottom:1px solid #ededed;margin-top:10px}.poll_table td.poll_content table.noborder{border-bottom:0;margin-bottom:10px}.poll_table td.poll_content table.item_bar_table td.bar{padding:0 0 5px 0;background:url(../images/back_bar.png) repeat-x left 4px}.poll_table td.poll_content table.item_bar_table td.bar img{width:100%;height:6px}.poll_table td.poll_content table.item_bar_table td.status{font-size:.9em;padding-bottom:5px;color:#636363;padding-left:15px}.poll_table td.poll_content table.item_bar_table td.status strong{font-weight:bold;color:#58c011}.poll_table td.poll_content div.item{color:#636363;border-bottom:1px solid #ededed;padding:5px 0 8px 10px;margin-bottom:3px}.poll_table td.poll_content div.noborder{border-bottom:0;margin-bottom:10px}.poll_table td.poll_content div.checkcount{border-bottom:1px dashed #ededed;padding:0 0 8px 10px;margin-bottom:3px;text-align:right;color:#636363}.poll_table tr.cap>td{font-size:0;line-height:0;height:7px;overflow:hidden}
|
||||
.poll_table{table-layout:fixed;width:100%;padding:0;border:0}.poll_table td{padding:0;margin:0}.poll_table td.h{background:url(../images/top_bg.png) repeat-x left top}.poll_table td.title{height:28px;background:url(../images/top_title_bg.png) repeat-x left top;padding:0 20px 0 20px;color:#c3c3c4}.poll_table td.title strong{color:#fff;font-weight:bold}.poll_table td.l{border-left:1px solid #e5e5e5}.poll_table td.r{border-right:1px solid #e5e5e5}.poll_table td.poll_content{padding:18px 13px 18px 13px}.poll_table td.poll_button{border:1px solid #e5e5e5;border-bottom:0;background-color:#f6f6f5}.poll_table td.poll_button div{padding:5px 0 2px 0;text-align:center}.poll_table td.b{background-color:#f6f6f5;height:7px}.poll_table td.b img{width:100%;height:6px;border-bottom:1px solid #e5e5e5}.poll_table td.bb{height:7px}.poll_table td.bb img{width:100%;height:6px;border-bottom:1px solid #e5e5e5}.poll_table td.poll_content div.title{color:#000;background-color:#f5f5f5;border-top:2px solid #c1c0bd;border-bottom:2px solid #c1c0bd;font-weight:bold;padding:7px 0 7px 10px;margin-bottom:10px}.poll_table td.poll_content div.item_text{color:#636363;padding:0 10px 0 10px;margin-top:10px}.poll_table td.poll_content div.item_text strong{font-weight:bold;color:#000;font-family:돋움;font-size:12px}.poll_table td.poll_content table.item_bar_table{width:100%;table-layout:fixed;border-bottom:1px solid #ededed;margin-top:10px}.poll_table td.poll_content table.noborder{border-bottom:0;margin-bottom:10px}.poll_table td.poll_content table.item_bar_table td.bar{padding:0 0 5px 0;background:url(../images/back_bar.png) repeat-x left center}.poll_table td.poll_content table.item_bar_table td.bar img{width:100%;height:6px}.poll_table td.poll_content table.item_bar_table td.status{font-size:.9em;padding-bottom:5px;color:#636363;padding-left:15px}.poll_table td.poll_content table.item_bar_table td.status strong{font-weight:bold;color:#58c011}.poll_table td.poll_content div.item{color:#636363;border-bottom:1px solid #ededed;padding:5px 0 8px 10px;margin-bottom:3px}.poll_table td.poll_content div.noborder{border-bottom:0;margin-bottom:10px}.poll_table td.poll_content div.checkcount{border-bottom:1px dashed #ededed;padding:0 0 8px 10px;margin-bottom:3px;text-align:right;color:#636363}.poll_table tr.cap>td{font-size:0;line-height:0;height:7px;overflow:hidden}
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<div id="poll_{$poll->poll_srl}" style="{$poll->style}">
|
||||
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/poll/skins/default/form/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form ruleset="poll" action="./" method="post" onsubmit="return doPoll(this)">
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
<input type="hidden" name="poll_srl_indexes" value="" />
|
||||
<input type="hidden" name="skin" value="{$skin}" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<input type="hidden" name="xe_validator_id" value="modules/poll/skins/default/form/1" />
|
||||
<table cellspacing="0" class="poll_table">
|
||||
<col width="7" />
|
||||
<col />
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
<load target="css/poll.css" />
|
||||
<div class="poll_box" style="{$poll->style}">
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/poll/skins/default/form/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
|
||||
<table cellspacing="0" class="poll_table">
|
||||
<col width="7" />
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<div id="poll_{$poll->poll_srl}" style="{$poll->style}">
|
||||
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'module/poll/skins/simple/form/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form action="./" method="post" onsubmit="return doPoll(this)">
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
<input type="hidden" name="poll_srl_indexes" value="" />
|
||||
<input type="hidden" name="skin" value="{$skin}" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<input type="hidden" name="xe_validator_id" value="module/poll/skins/simple/form/1" />
|
||||
|
||||
<table cellspacing="0" class="simple_poll">
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
<!--%import("css/poll.css")-->
|
||||
|
||||
<div style="{$poll->style}">
|
||||
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'module/poll/skins/simple/form/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
|
||||
<table cellspacing="0" class="simple_poll">
|
||||
<tr>
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
<load target="js/poll_admin.js" usecdn="true" />
|
||||
<!--#include("./header.html")-->
|
||||
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/poll/tpl/config/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form ruleset="insertConfig" action="./" method="post" id="fo_poll">
|
||||
<input type="hidden" name="module" value="poll" />
|
||||
<input type="hidden" name="act" value="procPollAdminInsertConfig" />
|
||||
<input type="hidden" name="xe_validator_id" value="modules/poll/tpl/config/1" />
|
||||
<table class="x_table x_table-striped x_table-hover">
|
||||
<tr>
|
||||
<th scope="col">{$lang->skin}</th>
|
||||
|
|
|
|||
|
|
@ -6,15 +6,16 @@ xe.lang.confirm_poll_delete = '{$lang->confirm_poll_delete}';
|
|||
</script>
|
||||
<load target="js/poll_admin.js" usecdn="true" />
|
||||
<div class="x_page-header">
|
||||
<h1>{$lang->poll} <a class="x_icon-question-sign" href="./help/index.html#UMAN_content_poll" target="_blank">{$lang->help}</a></h1>
|
||||
<h1>{$lang->poll} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_content_poll" target="_blank">{$lang->help}</a></h1>
|
||||
</div>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/poll/tpl/poll_list/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form ruleset="deleteChecked" action="./" method="post" id="pollList">
|
||||
<input type="hidden" name="act" value="procPollAdminDeleteChecked" />
|
||||
<input type="hidden" name="page" value="{$page}" />
|
||||
<input type="hidden" name="module" value="poll" />
|
||||
<input type="hidden" name="xe_validator_id" value="modules/poll/tpl/poll_list/1" />
|
||||
<table class="x_table x_table-striped x_table-hover" id="pollListTable">
|
||||
<caption>
|
||||
<strong>{$lang->all}({number_format($total_count)})</strong>
|
||||
|
|
@ -55,8 +56,7 @@ xe.lang.confirm_poll_delete = '{$lang->confirm_poll_delete}';
|
|||
</span>
|
||||
</form>
|
||||
|
||||
<form action="./" class="x_pagination x_pull-left" style="margin:0">
|
||||
<input type="hidden" name="error_return_url" value="" />
|
||||
<form action="./" class="x_pagination x_pull-left" style="margin:0" no-error-return-url="true">
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
|
||||
|
|
@ -93,10 +93,9 @@ xe.lang.confirm_poll_delete = '{$lang->confirm_poll_delete}';
|
|||
</ul>
|
||||
</form>
|
||||
|
||||
<form action="./" method="get" class="search center x_input-append" style="clear:both;padding:10px 0 0 0;margin:0">
|
||||
<form action="./" method="get" class="search center x_input-append" style="clear:both;padding:10px 0 0 0;margin:0" no-error-return-url="true">
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<input type="hidden" name="error_return_url" value="" />
|
||||
<select name="search_target" title="{$lang->search_target}" style="margin-right:4px">
|
||||
<option loop="$lang->search_poll_target_list => $key, $val" value="{$key}" selected="selected"|cond="$search_target==$key">{$val}</option>
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue