1. 가상사이트의 구분 변수명을 sid에서 vid로 변경

2. rank_count 위젯에서 그룹이 지정되지 않았을 경우 해당 가상 사이트의 모든 그룹을 대상으로 하도록 코드 수정


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6053 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-04-09 00:22:43 +00:00
parent 562c27f1d1
commit 5e883170bb
21 changed files with 87 additions and 78 deletions

View file

@ -18,10 +18,10 @@
$title = Context::get('title');
$domain = preg_replace('/^(http|https):\/\//i','', trim(Context::get('domain')));
$sid = trim(Context::get('site_id'));
$vid = trim(Context::get('site_id'));
if($domain && $sid) unset($sid);
if(!$domain && $sid) $domain = $sid;
if($domain && $vid) unset($vid);
if(!$domain && $vid) $domain = $vid;
if(!$title) return new Object(-1, 'msg_invalid_request');
if(!$domain) return new Object(-1, 'msg_invalid_request');
@ -93,7 +93,7 @@
$layout_args = $oLayoutModel->getLayout($info->layout_srl);
$layout->colorset = 'white';
// sid 형식일 경우
// vid 형식일 경우
if(isSiteID($domain)) $layout->index_url = getSiteUrl($domain, '');
else $layout->index_url = 'http://'.$domain;
$layout->main_menu = $info->menu_srl;

View file

@ -2,12 +2,12 @@
<form>
<node target="cafe_title" required="true" maxlength="250" />
<node target="domain" maxlength="250" />
<node target="sid" maxlength="250" filter="alpha_number" />
<node target="vid" maxlength="250" filter="alpha_number" />
</form>
<parameter>
<param name="title" target="cafe_title" />
<param name="domain" target="domain" />
<param name="site_id" target="sid" />
<param name="site_id" target="vid" />
</parameter>
<response callback_func="completeInsertHomepage">
<tag name="error" />

View file

@ -12,7 +12,7 @@
<tr>
<th scope="col"><div>{$lang->no}</div></th>
<th scope="col" class="half_wide"><div>{$lang->title}</div></th>
<th scope="col" class="half_wide"><div>{$lang->domain} / {$lang->sid}</div></th>
<th scope="col" class="half_wide"><div>{$lang->domain} / {$lang->vid}</div></th>
<th scope="col"><div>{$lang->regdate}</div></th>
<th scope="col" colspan="3"><div>&nbsp;</div></th>
</tr>
@ -63,14 +63,14 @@
<th scope="row"><div>{$lang->access_type}</div></th>
<td>
<label for="chkDomain"><input type="radio" id="chkDomain" name="access_type" value="domain" onclick="toggleAccessType('domain');" checked="checked" /> {$lang->access_domain}</label>
<label for="chkSid"><input type="radio" id="chkSid" name="access_type" value="sid" onclick="toggleAccessType('sid');" /> {$lang->access_sid}</label>
<label for="chkVid"><input type="radio" id="chkVid" name="access_type" value="vid" onclick="toggleAccessType('vid');" /> {$lang->access_vid}</label>
<div id="accessDomain" style="display:block; margin-top:10px;">
http://<input type="text" name="domain" value="" class="inputTypeText w200" />
<p>{$lang->about_domain}</p>
</div>
<div id="accessSid" style="display:none; margin-top:10px;">
<input type="text" name="sid" value="" class="inputTypeText w200" />
<p>{$lang->about_sid}</p>
<div id="accessVid" style="display:none; margin-top:10px;">
<input type="text" name="vid" value="" class="inputTypeText w200" />
<p>{$lang->about_vid}</p>
</div>
</td>
</tr>

View file

@ -401,12 +401,12 @@ function toggleAccessType(target) {
case 'domain' :
xGetElementById('cafeFo').domain.value = '';
xGetElementById('accessDomain').style.display = 'block';
xGetElementById('accessSid').style.display = 'none';
xGetElementById('accessVid').style.display = 'none';
break;
case 'sid' :
xGetElementById('cafeFo').sid.value = '';
case 'vid' :
xGetElementById('cafeFo').vid.value = '';
xGetElementById('accessDomain').style.display = 'none';
xGetElementById('accessSid').style.display = 'block';
xGetElementById('accessVid').style.display = 'block';
break;
}
}