관리자: #253 에 따른 처리

This commit is contained in:
whitedot
2013-02-18 16:01:55 +09:00
parent 9e72067bbb
commit c616a0809d
13 changed files with 101 additions and 129 deletions

View File

@ -72,9 +72,9 @@ var list_update_php = "./boardgroup_list_update.php";
생성된 그룹수 <?=number_format($total_count)?>개 생성된 그룹수 <?=number_format($total_count)?>개
</span> </span>
<select name="sfl" title="검색대상"> <select name="sfl" title="검색대상">
<option value="gr_subject" <?=get_selected("gr_subject", $_GET['sfl']);?>>제목</option> <option value="gr_subject"<?=get_selected($_GET['sfl'], "gr_subject", );?>>제목</option>
<option value="gr_id" <?=get_selected("gr_id", $_GET['sfl']);?>>ID</option> <option value="gr_id"<?=get_selected($_GET['sfl'], "gr_id");?>>ID</option>
<option value="gr_admin" <?=get_selected("gr_admin", $_GET['sfl']);?>>그룹관리자</option> <option value="gr_admin"<?=get_selected($_GET['sfl'], "gr_admin");?>>그룹관리자</option>
</select> </select>
<input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)"> <input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)">
<input type="submit" class="btn_submit" value="검색"> <input type="submit" class="btn_submit" value="검색">

View File

@ -80,7 +80,7 @@ $colspan = 4;
$sql .= " order by gr_id "; $sql .= " order by gr_id ";
$result = sql_query($sql); $result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) { for ($i=0; $row=sql_fetch_array($result); $i++) {
echo '<option value="'.$row['gr_id'].'">'.$row['gr_subject'].'</option>'; echo "<option value=\"".$row['gr_id']."\">".$row['gr_subject']."</option>";
} }
?> ?>
</select> </select>

View File

@ -61,7 +61,7 @@ $colspan = 7;
<legend><?=$gr['gr_subject']?>(아이디 <?=$gr['gr_id']?>)에서 검색</legend> <legend><?=$gr['gr_subject']?>(아이디 <?=$gr['gr_id']?>)에서 검색</legend>
<label for="sfl">검색대상</label> <label for="sfl">검색대상</label>
<select id="sfl" name="sfl"> <select id="sfl" name="sfl">
<option value='a.mb_id'>회원아이디</option> <option value="a.mb_id"<?=get_selected($_GET['sfl'], "a.mb_id")?>>회원아이디</option>
</select> </select>
<input type="text" id="stx" name="stx" class="required frm_input" required value="<? echo $stx ?>" title="검색어(필수)"> <input type="text" id="stx" name="stx" class="required frm_input" required value="<? echo $stx ?>" title="검색어(필수)">
<input type="submit" class="btn_submit" value="검색"> <input type="submit" class="btn_submit" value="검색">
@ -124,11 +124,6 @@ $colspan = 7;
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;gr_id=$gr_id&page=");?> <?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;gr_id=$gr_id&page=");?>
<?
if (isset($stx))
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>';
?>
<script> <script>
// POST 방식으로 삭제 // POST 방식으로 삭제
function post_delete(action_url, val) function post_delete(action_url, val)

View File

@ -118,14 +118,15 @@ $pg_anchor = "
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="cf_new_skin">최근게시물 스킨<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="cf_new_skin">최근게시물 스킨<strong class="sound_only">필수</strong></label></th>
<td><select id="cf_new_skin" name="cf_new_skin" class="required" required> <td>
<select id="cf_new_skin" name="cf_new_skin" class="required" required>
<? <?
$arr = get_skin_dir('new'); $arr = get_skin_dir('new');
for ($i=0; $i<count($arr); $i++) { for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL; echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_new_skin'], $arr[$i]).">".$arr[$i]."</option>".PHP_EOL;
} }
?></select> ?>
<script> document.getElementById('cf_new_skin').value="<?=$config['cf_new_skin']?>";</script> </select>
</td> </td>
<th scope="row"><label for="cf_new_rows">최근게시물 라인수</label></th> <th scope="row"><label for="cf_new_rows">최근게시물 라인수</label></th>
<td> <td>
@ -135,26 +136,28 @@ $pg_anchor = "
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="cf_search_skin">검색 스킨<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="cf_search_skin">검색 스킨<strong class="sound_only">필수</strong></label></th>
<td colspan="3"><select id="cf_search_skin" name="cf_search_skin" class="required" required> <td colspan="3">
<select id="cf_search_skin" name="cf_search_skin" class="required" required>
<? <?
$arr = get_skin_dir("search"); $arr = get_skin_dir("search");
for ($i=0; $i<count($arr); $i++) { for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL; echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_search_skin'], $arr[$i]).">".$arr[$i]."</option>".PHP_EOL;
} }
?></select> ?>
<script> document.getElementById('cf_search_skin').value="<?=$config['cf_search_skin']?>";</script> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row"><label for="cf_connect_skin">접속자 스킨<strong class="sound_only">필수</strong></label></th> <th scope="row"><label for="cf_connect_skin">접속자 스킨<strong class="sound_only">필수</strong></label></th>
<td colspan="3"><select id="cf_connect_skin" name="cf_connect_skin" class="required" required> <td colspan="3">
<select id="cf_connect_skin" name="cf_connect_skin" class="required" required>
<? <?
$arr = get_skin_dir('connect'); $arr = get_skin_dir('connect');
for ($i=0; $i<count($arr); $i++) { for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL; echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_connect_skin'], $arr[$i]).">".$arr[$i]."</option>".PHP_EOL;
} }
?></select> ?>
<script> document.getElementById('cf_connect_skin').value="<?=$config['cf_connect_skin']?>";</script> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -210,10 +213,10 @@ $pg_anchor = "
<td> <td>
<?=help('글내용중 자동 링크되는 타켓을 지정합니다.')?> <?=help('글내용중 자동 링크되는 타켓을 지정합니다.')?>
<select id="cf_link_target"> <select id="cf_link_target">
<option value="_blank"<? if ($config['cf_link_target'] == '_blank') echo "selected";?>>_blank</option> <option value="_blank"<?=get_selected($config['cf_link_target'], $arr[$i])?>>_blank</option>
<option value="_self"<? if ($config['cf_link_target'] == '_self') echo "selected";?>>_self</option> <option value="_self"<?=get_selected($config['cf_link_target'], $arr[$i])?>>_self</option>
<option value="_top"<? if ($config['cf_link_target'] == '_top') echo "selected";?>>_top</option> <option value="_top"<?=get_selected($config['cf_link_target'], $arr[$i])?>>_top</option>
<option value="_new"<? if ($config['cf_link_target'] == '_new') echo "selected";?>>_new</option> <option value="_new"<?=get_selected($config['cf_link_target'], $arr[$i])?>>_new</option>
</select> </select>
</td> </td>
<th scope="row"><label for="cf_search_part">검색 단위</label></th> <th scope="row"><label for="cf_search_part">검색 단위</label></th>
@ -277,11 +280,10 @@ $pg_anchor = "
<? <?
$arr = get_skin_dir('member'); $arr = get_skin_dir('member');
for ($i=0; $i<count($arr); $i++) { for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL; echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_member_skin'], $arr[$i]).">".$arr[$i]."</option>".PHP_EOL;
} }
?> ?>
</select> </select>
<script> document.getElementById('cf_member_skin').value="<?=$config['cf_member_skin']?>";</script>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -335,11 +337,10 @@ $pg_anchor = "
<td> <td>
<?=help('게시물에 게시자 별명 대신 아이콘 사용')?> <?=help('게시물에 게시자 별명 대신 아이콘 사용')?>
<select id="cf_use_member_icon" name="cf_use_member_icon"> <select id="cf_use_member_icon" name="cf_use_member_icon">
<option value="0">미사용 <option value="0"<?=get_selected($config['cf_use_member_icon'], $arr[$i])?>>미사용
<option value="1">아이콘만 표시 <option value="1"<?=get_selected($config['cf_use_member_icon'], $arr[$i])?>>아이콘만 표시
<option value="2">아이콘+이름 표시 <option value="2"<?=get_selected($config['cf_use_member_icon'], $arr[$i])?>>아이콘+이름 표시
</select> </select>
<script> document.getElementById('cf_use_member_icon').value="<?=$config['cf_use_member_icon']?>";</script>
</td> </td>
<th scope="row"><label for="cf_icon_level">아이콘 업로드 권한</label></th> <th scope="row"><label for="cf_icon_level">아이콘 업로드 권한</label></th>
<td><?=get_member_level_select('cf_icon_level', 1, 9, $config['cf_icon_level']) ?> 이상</td> <td><?=get_member_level_select('cf_icon_level', 1, 9, $config['cf_icon_level']) ?> 이상</td>

View File

@ -73,7 +73,6 @@ include_once('./admin.head.php');
<option value="1">수신동의한 회원만 <option value="1">수신동의한 회원만
<option value="">전체 <option value="">전체
</select> </select>
<script> document.getElementById('mb_mailling').value = '<?=$mb_mailling?>'; </script>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -81,16 +80,14 @@ include_once('./admin.head.php');
<td> <td>
<select id="mb_level_from" name="mb_level_from" title="최소권한"> <select id="mb_level_from" name="mb_level_from" title="최소권한">
<? for ($i=1; $i<=10; $i++) { ?> <? for ($i=1; $i<=10; $i++) { ?>
<option value='<? echo $i ?>'><? echo $i ?></option> <option value="<? echo $i ?>"><? echo $i ?></option>
<? } ?> <? } ?>
</select> 에서 </select> 에서
<select id="mb_level_to" name="mb_level_to" title="최대권한"> <select id="mb_level_to" name="mb_level_to" title="최대권한">
<? for ($i=1; $i<=10; $i++) { ?> <? for ($i=1; $i<=10; $i++) { ?>
<option value='<? echo $i ?>'><? echo $i ?></option> <option value="<? echo $i ?>"><? echo $i ?></option>
<? } ?> <? } ?>
</select> 까지 </select> 까지
<script> document.getElementById('mb_level_from').value = '<?=$mb_level_from?>'; </script>
<script> document.getElementById('mb_level_to').value = '<?=$mb_level_to?>'; </script>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -107,7 +104,6 @@ include_once('./admin.head.php');
} }
?> ?>
</select> </select>
<script> document.getElementById('gr_id').value = '<?=$gr_id?>'; </script>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@ -79,17 +79,17 @@ $colspan = 15;
<a href="?sst=mb_leave_date&amp;sod=desc&amp;sfl=<?=$sfl?>&amp;stx=<?=$stx?>">탈퇴 <?=number_format($leave_count)?></a>명 <a href="?sst=mb_leave_date&amp;sod=desc&amp;sfl=<?=$sfl?>&amp;stx=<?=$stx?>">탈퇴 <?=number_format($leave_count)?></a>명
</span> </span>
<select name="sfl" title="검색대상"> <select name="sfl" title="검색대상">
<option value="mb_id" <?=get_selected("mb_id", $_GET['sfl']);?>>회원아이디</option> <option value="mb_id"<?=get_selected($_GET['sfl'], "mb_id");?>>회원아이디</option>
<option value="mb_nick" <?=get_selected("mb_nick", $_GET['sfl']);?>>별명</option> <option value="mb_nick"<?=get_selected($_GET['sfl'], "mb_nick");?>>별명</option>
<option value="mb_name" <?=get_selected("mb_name", $_GET['sfl']);?>>이름</option> <option value="mb_name"<?=get_selected($_GET['sfl'], "mb_name");?>>이름</option>
<option value="mb_level" <?=get_selected("mb_level", $_GET['sfl']);?>>권한</option> <option value="mb_level"<?=get_selected($_GET['sfl'], "mb_level");?>>권한</option>
<option value="mb_email" <?=get_selected("mb_email", $_GET['sfl']);?>>E-MAIL</option> <option value="mb_email"<?=get_selected($_GET['sfl'], "mb_email");?>>E-MAIL</option>
<option value="mb_tel" <?=get_selected("mb_tel", $_GET['sfl']);?>>전화번호</option> <option value="mb_tel"<?=get_selected($_GET['sfl'], "mb_tel");?>>전화번호</option>
<option value="mb_hp" <?=get_selected("mb_hp", $_GET['sfl']);?>>핸드폰번호</option> <option value="mb_hp"<?=get_selected($_GET['sfl'], "mb_hp");?>>핸드폰번호</option>
<option value="mb_point" <?=get_selected("mb_point", $_GET['sfl']);?>>포인트</option> <option value="mb_point"<?=get_selected($_GET['sfl'], "mb_point");?>>포인트</option>
<option value="mb_datetime" <?=get_selected("mb_datetime", $_GET['sfl']);?>>가입일시</option> <option value="mb_datetime"<?=get_selected($_GET['sfl'], "mb_datetime");?>>가입일시</option>
<option value="mb_ip" <?=get_selected("mb_ip", $_GET['sfl']);?>>IP</option> <option value="mb_ip"<?=get_selected($_GET['sfl'], "mb_ip");?>>IP</option>
<option value="mb_recommend" <?=get_selected("mb_recommend", $_GET['sfl']);?>>추천인</option> <option value="mb_recommend"<?=get_selected($_GET['sfl'], "mb_recommend");?>>추천인</option>
</select> </select>
<input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)"> <input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)">
<input type="submit" class="btn_submit" value="검색"> <input type="submit" class="btn_submit" value="검색">

View File

@ -93,8 +93,8 @@ function point_clear()
<? if ($is_admin == 'super') { ?><!-- <a href="javascript:point_clear();">포인트정리</a> --><? } ?> <? if ($is_admin == 'super') { ?><!-- <a href="javascript:point_clear();">포인트정리</a> --><? } ?>
</span> </span>
<select name="sfl" title="검색대상"> <select name="sfl" title="검색대상">
<option value="mb_id">회원아이디</option> <option value="mb_id"<?=get_selected($_GET['sfl'], "mb_id");?>>회원아이디</option>
<option value="po_content">내용</option> <option value="po_content"<?=get_selected($_GET['sfl'], "po_content");?>>내용</option>
</select> </select>
<input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)"> <input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)">
<input type="submit" class="btn_submit" value="검색"> <input type="submit" class="btn_submit" value="검색">
@ -170,15 +170,6 @@ function point_clear()
<button onclick="btn_check(this.form, 'delete')">선택삭제</button> <button onclick="btn_check(this.form, 'delete')">선택삭제</button>
</div> </div>
<?
if (isset($stx))
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>'.PHP_EOL;
if (strstr($sfl, 'mb_id'))
$mb_id = $stx;
else
$mb_id = '';
?>
</form> </form>
</section> </section>

View File

@ -62,7 +62,7 @@ $colspan = 6;
투표수 : <?=number_format($total_count)?>개 투표수 : <?=number_format($total_count)?>개
</span> </span>
<select id="sfl" name="sfl" title="검색대상"> <select id="sfl" name="sfl" title="검색대상">
<option value='po_subject'>제목</option> <option value="po_subject"<?=get_selected($_GET['sfl'], "po_subject");?>>제목</option>
</select> </select>
<input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)"> <input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)">
<input type="submit" class="btn_submit" value="검색"> <input type="submit" class="btn_submit" value="검색">
@ -135,11 +135,6 @@ $colspan = 6;
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");?> <?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");?>
<?
if (isset($stx))
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>'.PHP_EOL;
?>
<script> <script>
$(function() { $(function() {
$('#fpolllist').submit(function() { $('#fpolllist').submit(function() {

View File

@ -79,8 +79,8 @@ var list_delete_php = 'popular_list.php';
건수 : <?=number_format($total_count)?>개 건수 : <?=number_format($total_count)?>개
</span> </span>
<select name="sfl" title="검색대상"> <select name="sfl" title="검색대상">
<option value="pp_word">검색어</option> <option value="pp_word"<?=get_selected($_GET['sfl'], "pp_word");?>>검색어</option>
<option value="pp_date">등록일</option> <option value="pp_date"<?=get_selected($_GET['sfl'], "pp_date");?>>등록일</option>
</select> </select>
<input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)"> <input type="text" name="stx" class="required frm_input" required value="<?=$stx?>" title="검색어(필수)">
<input type="submit" class="btn_submit" value="검색"> <input type="submit" class="btn_submit" value="검색">
@ -143,11 +143,6 @@ var list_delete_php = 'popular_list.php';
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");?> <?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");?>
<?
if (isset($stx))
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>';
?>
<script> <script>
$(function() { $(function() {
$('#fpopularlist').submit(function() { $('#fpopularlist').submit(function() {

View File

@ -121,7 +121,7 @@ fieldset .btn_submit:focus {height:21px;background:#555;line-height:1.7em}
label {vertical-align:middle} label {vertical-align:middle}
textarea, .frm_input {padding:2px;border:1px solid #ced9de;background:#f6f9fa;vertical-align:middle} textarea, .frm_input {padding:2px;border:1px solid #ced9de;background:#f6f9fa;vertical-align:middle}
textarea:focus, textarea:focus,
.frm_input:focus {background:#434f54;color:#fff} .frm_input:focus {border-color:#000;background:#434f54;color:#fff}
textarea {width:90%} textarea {width:90%}
select {border:1px solid #ced9de} select {border:1px solid #ced9de}
button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer} button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
@ -258,7 +258,6 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
#admin_confirm p {margin:0 0 10px;color:#9ab9c5;background:#383a3f} #admin_confirm p {margin:0 0 10px;color:#9ab9c5;background:#383a3f}
#admin_confirm label {color:#fff} #admin_confirm label {color:#fff}
#admin_confirm .frm_input {border-color:#000} #admin_confirm .frm_input {border-color:#000}
#admin_confirm .frm_input:focus {border-color:#000}
/* pagination */ /* pagination */
.pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center} .pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center}