mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 07:42:11 +09:00
위젯 검출 정규 표현식을 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2892 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f9896fe51a
commit
90aa62a6ac
993 changed files with 9190 additions and 10457 deletions
|
|
@ -92,7 +92,8 @@
|
|||
}
|
||||
|
||||
// 그래프 그리기
|
||||
$prev_x = $prev_y = 0;
|
||||
$prev_x = 0;
|
||||
$prev_y = $graph_height-45;
|
||||
$step = 0;
|
||||
|
||||
// 선 그림
|
||||
|
|
@ -100,12 +101,11 @@
|
|||
// 그래프를 그리기 위한 좌표 구함
|
||||
$unique_visitor = $val->unique_visitor;
|
||||
if($max_unique_visitor == 0) $per = 0;
|
||||
elseif($max_unique_visitor == $min_unique_visitor) $per = 0;
|
||||
else $per = ($val->unique_visitor-$min_unique_visitor) / ($max_unique_visitor-$min_unique_visitor);
|
||||
else $per = $val->unique_visitor / $max_unique_visitor;
|
||||
|
||||
// x,y 좌표 구함
|
||||
$cur_x = (int)($step * $x_gap);
|
||||
$cur_y = (int)( ($graph_height-55) - ($graph_height-55)*$per);
|
||||
$cur_y = (int)( ($graph_height-45) - ($graph_height-45)*$per);
|
||||
|
||||
imageline($image, $prev_x+15, $prev_y+15, $cur_x+15, $cur_y+15, $visitorLine);
|
||||
|
||||
|
|
@ -116,17 +116,18 @@
|
|||
}
|
||||
|
||||
// 포인트 + 숫자 표시
|
||||
$prev_x = $prev_y = 0;
|
||||
$prev_x = 0;
|
||||
$prev_y = $graph_height-45;
|
||||
$step = 0;
|
||||
foreach($data as $date => $val) {
|
||||
// 그래프를 그리기 위한 좌표 구함
|
||||
$unique_visitor = $val->unique_visitor;
|
||||
if($max_unique_visitor == 0) $per = 0;
|
||||
else $per = ($val->unique_visitor-$min_unique_visitor) / ($max_unique_visitor-$min_unique_visitor);
|
||||
else $per = $val->unique_visitor / $max_unique_visitor;
|
||||
|
||||
// x,y 좌표 구함
|
||||
$cur_x = (int)($step * $x_gap);
|
||||
$cur_y = (int)( ($graph_height-55) - ($graph_height-55)*$per);
|
||||
$cur_y = (int)( ($graph_height-45) - ($graph_height-45)*$per);
|
||||
|
||||
imagefilledrectangle($image, $cur_x+15-1, $cur_y+15-1, $cur_x+15+1, $cur_y+15+1, $pointColor);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<div class="tCenter">
|
||||
<select name="lang_type" onchange="doChangeLangType(this)">
|
||||
<option value="{$lang_type}">{$lang_type}</option>
|
||||
<!--@foreach($lang_supported as $val)-->
|
||||
<!--@if($val != $lang_type)-->
|
||||
<option value="{$val}">{$val}</option>
|
||||
<option value="{$lang_type}">{$lang_supported[$lang_type]}</option>
|
||||
<!--@foreach($lang_supported as $key => $val)-->
|
||||
<!--@if($key != $lang_type)-->
|
||||
<option value="{$key}">{$val}</option>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@ function doFocusUserId(fo_id) {
|
|||
|
||||
try {
|
||||
if(xScrollTop()) return;
|
||||
fo_obj.user_id.focus();
|
||||
|
||||
if(fo_obj.user_id.value) fo_obj.password.focus();
|
||||
else fo_obj.user_id.focus();
|
||||
} catch(e) { }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,9 @@
|
|||
<div class="fr"><a href="{getUrl('act','dispMemberLogout')}"><img src="./images/{$colorset}/buttonLogout.gif" alt="{$lang->cmd_logout}" width="47" height="18" /></a></div>
|
||||
</div>
|
||||
<ul class="userMenu">
|
||||
<li><a href="{getUrl('act','dispMemberInfo','member_srl',$logged_info->member_srl)}">{$lang->cmd_view_member_info}</a></li>
|
||||
<li><a href="{getUrl('act','dispMemberFriend','member_srl',$logged_info->member_srl)}">{$lang->cmd_view_friend}</a></li>
|
||||
<li><a href="{getUrl('act','dispMemberMessages','message_type','','member_srl',$logged_info->member_srl)}">{$lang->cmd_view_message_box}</a></li>
|
||||
<li><a href="{getUrl('act','dispMemberScrappedDocument','member_srl',$logged_info->member_srl)}">{$lang->cmd_view_scrapped_document}</a></li>
|
||||
<!--@foreach($logged_info->menu_list as $key => $val)-->
|
||||
<li><a href="{getUrl('act',$key)}">{Context::getLang($val)}</a></li>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($logged_info->is_admin=="Y")-->
|
||||
<li><a href="{getUrl('','module','admin')}" onclick="window.open(this.href);return false;">{$lang->cmd_management}</a></li>
|
||||
|
|
@ -33,4 +32,3 @@
|
|||
<p class="latestLogin">{$lang->last_login} : <span>{zDate($logged_info->last_login, "Y-m-d H:i")}</span></p>
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
|
||||
$widget_info->title = $title;
|
||||
$widget_info->comment_list = $output->data;
|
||||
$widget_info->comment_list = $output;
|
||||
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
|
|
|
|||
|
|
@ -20,10 +20,9 @@
|
|||
<h2>newest comments</h2>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
||||
<ul class="commentList">
|
||||
<!--@foreach($widget_info->comment_list as $val)-->
|
||||
<li><a href="{getUrl('','document_srl',$val->document_srl)}#comment_{$val->comment_srl}">{htmlspecialchars(cut_str(strip_tags($val->content),20,'...'))}</a></li>
|
||||
<li><a href="{getUrl('','document_srl',$val->get('document_srl'))}#comment_{$val->get('comment_srl')}">{$val->getSummary(20)}</a></li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
<ul>
|
||||
<!--@foreach($widget_info->comment_list as $val)-->
|
||||
<li><a href="{getUrl('','document_srl',$val->document_srl)}#comment_{$val->comment_srl}">{htmlspecialchars(cut_str(strip_tags($val->content),20,'...'))}</a></li>
|
||||
<li><a href="{getUrl('','document_srl',$val->get('document_srl'))}#comment_{$val->get('comment_srl')}">{$val->getSummary(20)}</a></li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
$obj->sort_index = $order_target;
|
||||
$obj->order_type = $order_type=="desc"?"asc":"desc";
|
||||
$obj->list_count = $list_count;
|
||||
if($obj->sort_index == 'list_order') $obj->avoid_notice = -2100000000;
|
||||
|
||||
$output = executeQuery('widgets.newest_document.getNewestDocuments', $obj);
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
<conditions>
|
||||
<condition operation="in" column="module_srl" var="module_srl" filter="number" />
|
||||
<condition operation="equal" column="category_srl" var="category_srl" pipe="and" />
|
||||
<condition operation="excess" column="list_order" var="avoid_notice" pipe="and" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="list_order" order="order_type" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.newestDocument { position:relative; border:1px solid #e0e1db; background:url(../images/normal/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
|
||||
.newestDocument { border:1px solid #e0e1db; background:url(../images/normal/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
|
||||
.newestDocument h2 { position:relative; border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
|
||||
/*:first-child+html .boxTypeB h2 { height:20px;} */
|
||||
.newestDocument .documentList { padding:1.2em; overflow:hidden;}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
</div>
|
||||
<ul class="documentList">
|
||||
<!--@foreach($widget_info->document_list as $oDocument)-->
|
||||
<li><a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText($widget_info->subject_cut_size)}</a> {$oDocument->printExtraImages($widget_info->duration_new)}</li>
|
||||
<li><a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitle($widget_info->subject_cut_size)}</a> {$oDocument->printExtraImages($widget_info->duration_new)}</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
</div>
|
||||
<ul>
|
||||
<!--@foreach($widget_info->document_list as $oDocument)-->
|
||||
<li><a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText($widget_info->subject_cut_size)}</a> {$oDocument->printExtraImages($widget_info->duration_new)}</li>
|
||||
<li><a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitle($widget_info->subject_cut_size)}</a> {$oDocument->printExtraImages($widget_info->duration_new)}</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<!--@foreach($widget_info->document_list as $oDocument)-->
|
||||
<div class="document_box">
|
||||
<div class="document">
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText($widget_info->subject_cut_size)}</a>
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitle($widget_info->subject_cut_size)}</a>
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
<span class="comment"><a href="{$oDocument->getPermanentUrl()}#comment">*{$oDocument->getCommentCount()}</a></span>
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<li>
|
||||
<span class="date">{$oDocument->getRegdate("Y-m-d")}</span>
|
||||
<span class="title">
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText($widget_info->subject_cut_size)}</a>
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitle($widget_info->subject_cut_size)}</a>
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
<span class="comment">[<a href="{$oDocument->getPermanentUrl()}#comment">{$oDocument->getCommentCount()}</a>]</span>
|
||||
<!--@end-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue