예제 #1
0
파일: setup.skin.php 프로젝트: peb317/gbamn
echo get_checked('1', $wset['hit']);
?>
> 조회</label>
			&nbsp;
			<label><input type="checkbox" name="wset[cmt]" value="1"<?php 
echo get_checked('1', $wset['cmt']);
?>
> 댓글</label>
			&nbsp;
			<label><input type="checkbox" name="wset[buy]" value="1"<?php 
echo get_checked('1', $wset['buy']);
?>
> 구매</label>
			&nbsp;
			<label><input type="checkbox" name="wset[sns]" value="1"<?php 
echo get_checked('1', $wset['sns']);
?>
> SNS</label>
			&nbsp;
			<select name="wset[star]">
				<option value="">별점</option>
				<?php 
echo apms_color_options($wset['star']);
?>
			</select>
		</td>
	</tr>
	<tr>
		<td align="center">새아이템</td>
		<td>
			<input type="text" name="wset[newtime]" value="<?php 
예제 #2
0
		<td>
			<?php 
echo help('FAQ 아이디를 콤마(,)로 구분해서 복수 등록 가능, 미입력시 전체 FAQ 적용');
?>
			<input type="text" name="wset[fa_list]" value="<?php 
echo $wset['fa_list'];
?>
" size="60" class="frm_input">
			&nbsp;
		</td>
	</tr>
	<tr>
		<td align="center">제외설정</td>
		<td>
			<label><input type="checkbox" name="wset[except]" value="1"<?php 
echo get_checked('1', $wset['except']);
?>
> 지정한 FAQ 아이디 제외</label>
		</td>
	</tr>
	<tr>
		<td align="center">글아이콘</td>
		<td>
			<input type="text" name="wset[icon]" id="fcon" value="<?php 
echo $wset['icon'];
?>
" size="30" class="frm_input"> 
			<a href="<?php 
echo G5_BBS_URL;
?>
/ficon.php?fid=fcon" class="btn_frmline win_scrap">아이콘 선택</a>
예제 #3
0
echo help('하루동안 아이핀과 휴대폰 본인확인 인증 이용회수를 제한할 수 있습니다.<br>회수제한은 실서비스에서 아이핀과 휴대폰 본인확인 인증에 개별 적용됩니다.<br>0 으로 설정하시면 회수제한이 적용되지 않습니다.');
?>
                <input type="text" name="cf_cert_limit" value="<?php 
echo $config['cf_cert_limit'];
?>
" id="cf_cert_limit" class="frm_input" size="3"> 회
            </td>
        </tr>
        <tr>
            <th scope="row" class="cf_cert_service"><label for="cf_cert_req">본인확인 필수</label></th>
            <td class="cf_cert_service">
                <?php 
echo help('회원가입 때 본인확인을 필수로 할지 설정합니다. 필수로 설정하시면 본인확인을 하지 않은 경우 회원가입이 안됩니다.');
?>
                <input type="checkbox" name="cf_cert_req" value="1" id="cf_cert_req"<?php 
echo get_checked($config['cf_cert_req'], 1);
?>
> 예
            </td>
        </tr>
        </tbody>
        </table>
    </div>
</section>

<?php 
echo $frm_submit;
?>

<section id="anc_cf_mail">
    <h2 class="h2_frm">기본 메일 환경 설정</h2>
예제 #4
0
				<option value=""<?php 
echo get_selected('', $wset['infi']);
?>
>일반형</option>
				<option value="1"<?php 
echo get_selected('1', $wset['infi']);
?>
>더보기</option>
				<option value="2"<?php 
echo get_selected('2', $wset['infi']);
?>
>무한스크롤</option>
			</select>
			&nbsp;
			<label><input type="checkbox" name="wset[masonry]" value="1"<?php 
echo get_checked('1', $wset['masonry']);
?>
> 메이슨리(Masonry) 적용</label>
		</td>
	</tr>
	<tr>
		<td align="center">썸네일</td>
		<td>
			<input type="text" name="wset[thumb_w]" value="<?php 
echo $wset['thumb_w'];
?>
" size="4" class="frm_input">
			x
			<input type="text" name="wset[thumb_h]" value="<?php 
echo $wset['thumb_h'];
?>
예제 #5
0
파일: do_text_header.php 프로젝트: hans/lwt
echo '<h4>';
echo '<a href="edit_texts.php" target="_top">';
echo '<img src="img/lwt_icon.png" class="lwtlogo" alt="Logo" />Learning with Texts';
echo '</a>&nbsp; | &nbsp;';
quickMenu();
echo '&nbsp; | &nbsp;<a href="do_test.php?text=' . $textid . '" target="_top"><img src="icn/question-balloon.png" title="Test" alt="Test" /></a> &nbsp;<a href="print_text.php?text=' . $textid . '" target="_top"><img src="icn/printer.png" title="Print" alt="Print" /> &nbsp;<a target="_top" href="edit_texts.php?chg=' . $textid . '"><img src="icn/document--pencil.png" title="Edit Text" alt="Edit Text" /></a> &nbsp;<a href="new_word.php?text=' . $textid . '&amp;lang=' . $langid . '" target="ro"><img src="icn/sticky-note--plus.png" title="New Term" alt="New Term" /></a>';
echo '</h4><table><tr><td><h3>READ&nbsp;▶</h3></td><td class="width99pc"><h3>' . tohtml($title) . '</h3></td></tr></table>';
$showAll = getSetting('showallwords');
$showAll = $showAll == '' ? 1 : ((int) $showAll != 0 ? 1 : 0);
?>
<table class="width99pc"><tr><td class="center" colspan="7" style="padding:10px;" nowrap="nowrap">TO DO: <span id="learnstatus"><?php 
echo texttodocount2($_REQUEST['text']);
?>
</span>&nbsp;&nbsp;&nbsp;&nbsp;<span title="[Show All] = ON: ALL terms are shown, and all multi-word terms are shown as superscripts before the first word. The superscript indicates the number of words in the multi-word term. 
[Show All] = OFF: Multi-word terms now hide single words and shorter or overlapping multi-word terms.">Show All&nbsp;<input type="checkbox" id="showallwords" <?php 
echo get_checked($showAll);
?>
 /></span><span id="thetextid" class="hide"><?php 
echo $textid;
?>
</span></td></tr>

<?php 
// AUDIO PLAYER
if ($audio != '') {
    $playerskin = getSettingWithDefault('set-player-skin-name');
    ?>
<link type="text/css" href="css/jplayer_skin/<?php 
    echo $playerskin;
    ?>
.css" rel="stylesheet" />
예제 #6
0
?>
 /> Status
<input type="checkbox" id="cbTerm" <?php 
echo get_checked($currenttabletestsetting3);
?>
 /> Term
<input type="checkbox" id="cbTrans" <?php 
echo get_checked($currenttabletestsetting4);
?>
 /> Translation
<input type="checkbox" id="cbRom" <?php 
echo get_checked($currenttabletestsetting5);
?>
 /> Romanization
<input type="checkbox" id="cbSentence" <?php 
echo get_checked($currenttabletestsetting6);
?>
 /> Sentence
</p>

<table class="sortable tab1" style="width:auto;" cellspacing="0" cellpadding="5">
<tr>
<th class="th1">Ed</th>
<th class="th1 clickable">Status</th>
<th class="th1 clickable">Term</th>
<th class="th1 clickable">Translation</th>
<th class="th1 clickable">Romanization</th>
<th class="th1 clickable">Sentence</th>
</tr>
<?php 
$sql = 'SELECT DISTINCT WoID, WoText, WoTranslation, WoRomanization, WoSentence, WoStatus, WoTodayScore As Score FROM ' . $testsql . ' AND WoStatus BETWEEN 1 AND 5 AND WoTranslation != \'\' AND WoTranslation != \'*\' order by WoTodayScore, WoRandom*RAND()';
예제 #7
0
							</label>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">폰트</label>
						<div class="col-sm-4">
							<label class="radio-inline">
								<input type="radio" name="dpv_font" value="ko" <?php 
    echo get_checked($at_set['font'], "ko");
    ?>
> 한글폰트
							</label>
							<label class="radio-inline">
								<input type="radio" name="dpv_font" value="en" <?php 
    echo get_checked($at_set['font'], "en");
    ?>
> 영문폰트
							</label>
						</div>
					</div>
		
				</div>
				<div class="modal-footer">
					<button type="submit" class="btn btn-color"><i class="fa fa-check"></i> 적용하기</button>
				</div>
			</div>
			</form>
		</div>
	</div>
	<?php 
예제 #8
0
echo get_checked('1', $wset['rdm']);
?>
> 랜덤</label>
			&nbsp;
			<label><input type="checkbox" name="wset[dot]" value="1"<?php 
echo get_checked('1', $wset['dot']);
?>
> 페이징</label>
			&nbsp;
			<label><input type="checkbox" name="wset[lazy]" value="1"<?php 
echo get_checked('1', $wset['lazy']);
?>
> Lazy</label>
			&nbsp;
			<label><input type="checkbox" name="wset[nav]" value="1"<?php 
echo get_checked('1', $wset['nav']);
?>
> 화살표</label>
		</td>
	</tr>
	<tr>
		<td align="center">추출갯수</td>
		<td>
			<input type="text" name="wset[rows]" value="<?php 
echo $wset['rows'];
?>
" class="frm_input" size="4"> 개 - PC
			&nbsp;
			<input type="text" name="wmset[rows]" value="<?php 
echo $wmset['rows'];
?>
예제 #9
0
     <th scope="row">건별 금액</th>
     <td><?php echo number_format($userinfo['gpay'])?> 원</td>
 </tr>
 <?php } ?>
 <tr>
     <th scope="row"><label for="cf_phone">회신번호<strong class="sound_only"> 필수</strong></label></th>
     <td>
         <?php echo help("회신받을 휴대폰 번호를 입력하세요. '-' 를 꼭 입력하세요.<br>예) 010-123-4567"); ?>
         <input type="text" name="cf_phone" value="<?php echo $sms5['cf_phone']; ?>" id="cf_phone" required class="frm_input required" size="12">
     </td>
 </tr>
 <tr>
     <th scope="row"><label for="cf_member">회원간 문자전송</label></th>
     <td>
         <?php echo help("허용에 체크하면 회원끼리 문자전송이 가능합니다.");?>
         <input type="checkbox" name="cf_member" value="1" id="cf_member" <?php echo get_checked(1, $sms5['cf_member']); ?>> <label for="cf_member">허용</label>
     </td>
 </tr>
 <tr>
     <th scope="row"><label for="cf_level">문자전송가능 레벨</label></th>
     <td>
         <?php echo help("문자전송을 허용할 회원레벨을 선택해주세요.");?>
         <select name="cf_level" id="cf_level">
             <?php for ($i=1; $i<=10; $i++) { ?>
             <option value="<?php echo $i?>"<?php echo get_selected($i, $sms5['cf_level']);?>> <?php echo $i?> </option>
             <?php } ?>
         </select>
         레벨 이상
     </td>
 </tr>
 <tr>
예제 #10
0
    <label for="od_misu03">환불</label>
    <input type="checkbox" name="od_receipt_point" value="Y" id="od_misu04" <?php 
echo get_checked($od_receipt_point, 'Y');
?>
>
    <label for="od_misu04">포인트주문</label>
    <input type="checkbox" name="od_coupon" value="Y" id="od_misu05" <?php 
echo get_checked($od_coupon, 'Y');
?>
>
    <label for="od_misu05">쿠폰</label>
    <?php 
if ($default['de_escrow_use']) {
    ?>
    <input type="checkbox" name="od_escrow" value="Y" id="od_misu06" <?php 
    echo get_checked($od_escrow, 'Y');
    ?>
>
    <label for="od_misu06">에스크로</label>
    <?php 
}
?>
</div>

<div class="sch_last">
    <strong>주문일자</strong>
    <input type="text" id="fr_date"  name="fr_date" value="<?php 
echo $fr_date;
?>
" class="frm_input" size="10" maxlength="10"> ~
    <input type="text" id="to_date"  name="to_date" value="<?php 
예제 #11
0
				<?php 
    echo help('URL(http://...)을 입력해야 하며, 미입력시 링크가 걸리지 않습니다.');
    ?>
				<input type="text" name="wset[link<?php 
    echo $i;
    ?>
]" value="<?php 
    echo $wset['link' . $i];
    ?>
" size="52" class="frm_input" placeholder="http://...">
				<div style="height:8px;"></div>
				<label><input type="checkbox" name="wset[win<?php 
    echo $i;
    ?>
]" value="1"<?php 
    echo get_checked('1', $wset['win' . $i]);
    ?>
> 새창으로 링크 열기</label>
			</td>
		</tr>
		<tr>
			<td align="center">라벨</td>
			<td>
				<select name="wset[label<?php 
    echo $i;
    ?>
]">
					<option value=""<?php 
    echo get_selected('', $wset['label' . $i]);
    ?>
>사용안함</option>
예제 #12
0
	<tr>
		<td align="center">썸네일</td>
		<td>
			<input type="text" required name="wset[thumb_w]" value="<?php 
echo $wset['thumb_w'];
?>
" class="frm_input" size="4">
			x
			<input type="text" name="wset[thumb_h]" value="<?php 
echo $wset['thumb_h'];
?>
" class="frm_input" size="4">
			px 
			&nbsp;
			<label><input type="checkbox" name="wset[thumb_no]" value="1"<?php 
echo get_checked('1', $wset['thumb_no']);
?>
> 원본출력</label>
		</td>
	</tr>
	<tr>
		<td align="center">추출갯수</td>
		<td>
			<input type="text" name="wset[rows]" value="<?php 
echo $wset['rows'];
?>
" class="frm_input" size="4"> 개 - PC
			&nbsp;
			<input type="text" name="wmset[rows]" value="<?php 
echo $wmset['rows'];
?>
예제 #13
0
function filtros_1($reporte)
{
    ?>
<form action="?op=filtros_1" method="post" name="form1">
<table align="center" class="tabla">
<caption>Configurar filtros en reportes</caption>
<tr height="20">
	<td align="center" width="80">Reporte:</td>
	<td align="center">
    <select name="reporte" class="texto" style="width:250px;" onchange="submit();">
    	<option value=""></option>
        <option value="">---------Autorizador-----------</option>
        <option value="a_aprobados" <?php 
    if ($reporte == 'a_aprobados') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Aprobado</option>
        <option value="a_cancelados" <?php 
    if ($reporte == 'a_cancelados') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Cancelado</option>
        <option value="scrap_firmar" <?php 
    if ($reporte == 'scrap_firmar') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Por firmar</option>
        <option value="a_proceso" <?php 
    if ($reporte == 'a_proceso') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Proceso</option>
        <option value="a_rechazados" <?php 
    if ($reporte == 'a_rechazados') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Rechazado</option>
        <option value="">---------Capturista------------</option>
        <option value="c_aprobados" <?php 
    if ($reporte == 'c_aprobados') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Aprobado</option>
        <option value="c_cancelados" <?php 
    if ($reporte == 'c_cancelados') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Cancelado</option>
        <option value="c_proceso" <?php 
    if ($reporte == 'c_proceso') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Proceso</option>
        <option value="c_rechazados" <?php 
    if ($reporte == 'c_rechazados') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Rechazado</option>
        <option value="">---------Reportes------------</option>        
        <option value="de_captura" <?php 
    if ($reporte == 'de_captura') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Captura SAP</option>
        <option value="definitivo" <?php 
    if ($reporte == 'definitivo') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Definitivo</option>
        <option value="atrasos" <?php 
    if ($reporte == 'atrasos') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Atrasos</option>
        <option value="ver_filtros" <?php 
    if ($reporte == 'ver_filtros') {
        ?>
 selected="selected"<?php 
    }
    ?>
>Preliminar y General</option>
	</select>    
    </td>
</tr>
</table></form>
<table align="center" cellpadding="10" cellspacing="0" border="0">
<tr>
	<td class="titulo">
<?php 
    switch ($reporte) {
        case "a_aprobados":
            echo "Autorizador - Aprobados";
            break;
        case "a_cancelados":
            echo "Autorizador - Cancelado";
            break;
        case "scrap_firmar":
            echo "Autorizador - Por firmar";
            break;
        case "a_proceso":
            echo "Autorizador - Proceso";
            break;
        case "a_rechazados":
            echo "Autorizador - Rechazado";
            break;
        case "c_aprobados":
            echo "Capturista - Aprobados";
            break;
        case "c_cancelados":
            echo "Capturista - Cancelado";
            break;
        case "c_proceso":
            echo "Capturista - Proceso";
            break;
        case "c_rechazado":
            echo "Capturista - Rechazado";
            break;
        case "de_captura":
            echo "Reportes - Captura SAP";
            break;
        case "definitivo":
            echo "Reportes - Definitivo";
            break;
        case "atrasos":
            echo "Reportes - Atrasos";
            break;
        case "ver_filtros":
            echo "Preliminar y General";
            break;
    }
    ?>
</td></tr>
</table>
<?php 
    if ($reporte != '') {
        ?>
<form method="post" action="?op=filtros_2">
<input type="hidden" name="reporte" value="<?php 
        echo $reporte;
        ?>
">
<table align="center" class="tabla">
<thead>
<tr bgcolor="#E6E6E6" height="20">
	<td align="center" width="30">&nbsp;</td>
    <td align="center" width="120">Campo</td>
	<td align="center" width="30">&nbsp;</td>
    <td align="center" width="120">Campo</td>
	<td align="center" width="30">&nbsp;</td>
    <td align="center" width="120">Campo</td>    	
</tr>	
</thead>
<tbody>
<?php 
        $s_1 = "select id, campo, nombre from encabezados where ver_reportes!='0' order by nombre";
        $r_1 = mysql_query($s_1);
        while ($d_1 = mysql_fetch_array($r_1)) {
            if ($d_1['nombre'] != '') {
                ?>
<tr onMouseOut="this.style.background='#F7F7F7'" onMouseOver="this.style.background='#FFDD99'" bgcolor="#F7F7F7" height="20">
	<td align="center">
    	<input type="checkbox" name="valor[<?php 
                echo $d_1['id'];
                ?>
]" <?php 
                echo get_checked($reporte, $d_1['id']);
                ?>
 value="1"></td>
    <td align="left">&nbsp;&nbsp;<?php 
                echo $d_1['nombre'];
                ?>
</td> 
	<?php 
            }
            $d_1 = mysql_fetch_array($r_1);
            if ($d_1['nombre'] != '') {
                ?>
	<td align="center">
    	<input type="checkbox" name="valor[<?php 
                echo $d_1['id'];
                ?>
]" <?php 
                echo get_checked($reporte, $d_1['id']);
                ?>
 value="1"></td>
    <td align="left">&nbsp;&nbsp;<?php 
                echo $d_1['nombre'];
                ?>
</td>   
	<?php 
            }
            $d_1 = mysql_fetch_array($r_1);
            if ($d_1['nombre'] != '') {
                ?>
	<td align="center">
    	<input type="checkbox" name="valor[<?php 
                echo $d_1['id'];
                ?>
]" <?php 
                echo get_checked($reporte, $d_1['id']);
                ?>
 value="1"></td>
    <td align="left">&nbsp;&nbsp;<?php 
                echo $d_1['nombre'];
                ?>
</td><?php 
            }
            ?>
	 
</tr><?php 
        }
        ?>
	
</tbody>
</table>
<br><div align="center"><input type="submit" value="Guardar" class="submit" /></div>
</form>               
<?php 
    }
}
예제 #14
0
function get_sel_archive_types($name)
{
    $rows = array("Регулярные данные" => "0", "Журнал отклонений" => "1", "Журнал аварий" => "2");
    // Массив типов журнала
    $code = "<h3>Тип журнала</h3>";
    $counter = 1;
    foreach ($rows as $key => $value) {
        $i_name = $name . "_" . $counter;
        $checked = get_checked($_GET[$i_name]);
        $code .= "<label><input name=\"{$i_name}\" value=\"{$value}\" type=\"checkbox\" {$checked}>{$key}</label>";
        $counter += 1;
    }
    return $code;
}
예제 #15
0
파일: config.php 프로젝트: khk0613/YHK
    echo help("회신받을 휴대폰 번호를 입력하세요. '-' 를 꼭 입력하세요.<br>예) 010-123-4567");
    ?>
            <input type="text" name="cf_phone" value="<?php 
    echo $sms5['cf_phone'];
    ?>
" id="cf_phone" required class="frm_input required" size="12">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_member">회원간 문자전송</label></th>
        <td>
            <?php 
    echo help("허용에 체크하면 회원끼리 문자전송이 가능합니다.");
    ?>
            <input type="checkbox" name="cf_member" value="1" id="cf_member" <?php 
    echo get_checked(1, $sms5['cf_member']);
    ?>
> <label for="cf_member">허용</label>
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_level">문자전송가능 레벨</label></th>
        <td>
            <?php 
    echo help("문자전송을 허용할 회원레벨을 선택해주세요.");
    ?>
            <select name="cf_level" id="cf_level">
                <?php 
    for ($i = 1; $i <= 10; $i++) {
        ?>
                <option value="<?php 
예제 #16
0
	<?php 
for ($i = 1; $i <= $wset['slider']; $i++) {
    //총 7개
    ?>
		<tr>
			<td align="center" rowspan="6">#<?php 
    echo $i;
    ?>
</td>
			<td align="center" class="bg-light"><b>사용여부</b></td>
			<td class="bg-light">
				<label><input type="checkbox" name="wset[use<?php 
    echo $i;
    ?>
]" value="1"<?php 
    echo get_checked('1', $wset['use' . $i]);
    ?>
> <b>출력하기</b></label>
			</td>
		</tr>
		<tr>
			<td align="center">이미지</td>
			<td>
				<input type="text" name="wset[img<?php 
    echo $i;
    ?>
]" value="<?php 
    echo $wset['img' . $i];
    ?>
" id="img<?php 
    echo $i;
예제 #17
0
" size="4" class="frm_input"> 일전까지 자료(일자지정 설정시 적용)
		</td>
	</tr>
	<tr>
		<td align="center">회원지정</td>
		<td>
			<?php 
echo help('회원아이디를 콤마(,)로 구분해서 복수 등록 가능');
?>
			<input type="text" name="wset[mb_list]" value="<?php 
echo $wset['mb_list'];
?>
" size="46" class="frm_input">
			&nbsp;
			<label><input type="checkbox" name="wset[ex_mb]" value="1"<?php 
echo get_checked('1', $wset['ex_mb']);
?>
> 제외하기</label>
		</td>
	</tr>
	<tr>
		<td align="center">캐시사용</td>
		<td>
			<input type="text" name="wset[cache]" value="<?php 
echo $wset['cache'];
?>
" class="frm_input" size="4"> 초 간격으로 캐싱
		</td>
	</tr>
	</tbody>
	</table>
예제 #18
0
    $search_text = $_SESSION['search_text'];
}
// convert date arrays into date strings
$start_time = mktime(0, 0, 0, $dateArr['mon'], $dateArr['mday'], $dateArr['year']);
$end_time = mktime(0, 0, 0, $dateArr2['mon'], $dateArr2['mday'], $dateArr2['year']);
$start_date = date('n/j/Y', $start_time);
$end_date = date('n/j/Y', $end_time);
$excludeBudgetCheck = '';
$priorMonthCheck = '';
if (isset($_POST['edit'])) {
    // Loading a transaction & ledger entries from database.
    $error = $trans->Load_transaction($_POST['edit']);
    $editClick = 1;
    // used to set a form var for javascript
    $excludeBudgetCheck = get_checked($trans->get_exclude_budget());
    $priorMonthCheck = get_checked($trans->get_prior_month());
}
// Build the account list dropdown
$acct_list = Account::Get_account_list($_SESSION['login_id']);
$acct_dropdown = Build_dropdown($acct_list, 'sel_account_id', $sel_account_id);
// Total period dropdown
// Note: this does not affect Assets or Liabilities (LHS accounts)
$period_list = array('month' => 'Monthly', 'year' => 'Yearly', 'visible' => 'Visible dates');
$period_dropdown = Build_dropdown($period_list, 'total_period', $total_period);
$mode = '';
if (isset($_POST['save'])) {
    $mode = 'save';
} elseif (isset($_POST['delete'])) {
    $mode = 'delete';
}
// Save or Delete