@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux adweb87 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64
Current Path :
/
home
/
sanchung
/
public_html
/
admin
/
_popup
/
pediter
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_popup/pediter/table.php
<html> <head> <meta http-equiv="Pragma" content="no-cache"> <title>Ç¥ ¼Ó¼º</title> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <script language="javascript"> <!-- function showColorPicker(curcolor) { var newcol = showModalDialog('./color.php', curcolor, 'scroll: No; dialogHeight:340px; dialogWidth:340px; resizable:no; status:no'); if(newcol) { t_form.tbgcolor.value = newcol; color_view.style.backgroundColor = t_form.tbgcolor.value; } } function Init() { var tValues = window.dialogArguments; if (tValues) { // set attribute values t_form.trows.value = '3'; t_form.trows.disabled = true; t_form.tcols.value = '3'; t_form.tcols.disabled = true; t_form.tborder.value = tValues.border; t_form.tpadding.value = tValues.cellPadding; t_form.tspacing.value = tValues.cellSpacing; t_form.tbgcolor.value = tValues.bgColor; color_view.style.backgroundColor = t_form.tbgcolor.value; if (tValues.width) { if (!isNaN(tValues.width) || (tValues.width.substr(tValues.width.length-2,2).toLowerCase() == "px")) { // pixels if (!isNaN(tValues.width)) t_form.twidth.value = tValues.width; else t_form.twidth.value = tValues.width.substr(0,tValues.width.length-2); t_form.twtype.options[0].selected = false; t_form.twtype.options[1].selected = true; } else { // percents t_form.twidth.value = tValues.width.substr(0,tValues.width.length-1); t_form.twtype.options[0].selected = true; t_form.twtype.options[1].selected = false; } } if (tValues.width) { if (!isNaN(tValues.height) || (tValues.height.substr(tValues.height.length-2,2).toLowerCase() == "px")) { // pixels if (!isNaN(tValues.height)) t_form.theight.value = tValues.height; else t_form.theight.value = tValues.height.substr(0,tValues.height.length-2); t_form.thtype.options[0].selected = false; t_form.thtype.options[1].selected = true; } else { // percents t_form.theight.value = tValues.height.substr(0,tValues.height.length-1); t_form.thtype.options[0].selected = true; t_form.thtype.options[1].selected = false; } } } else { // set default values t_form.trows.value = '3'; t_form.tcols.value = '3'; t_form.tborder.value = '1'; t_form.twidth.value = '50'; } } function tbvaluecheck() { // check whether rows and cols are integers if(isNaN(parseInt(t_form.trows.value)) || parseInt(t_form.trows.value) < 1) { alert('Error: Rows is not a number'); t_form.trows.focus(); return false; } if(isNaN(parseInt(t_form.tcols.value)) || parseInt(t_form.tcols.value) < 1) { alert('Error: Columns is not a number'); t_form.tcols.focus(); return false; } // check width and height if (isNaN(parseInt(t_form.twidth.value)) && t_form.twidth.value != '') { alert('³ÐÀÌ °ªÀÌ Á¤¼ö°¡ ¾Æ´Õ´Ï´Ù. '); t_form.twidth.focus(); return false; } if (isNaN(parseInt(t_form.theight.value)) && t_form.theight.value != '') { alert('³ôÀÌ °ªÀÌ Á¤¼ö°¡ ¾Æ´Õ´Ï´Ù. '); t_form.theight.focus(); return false; } // check border, padding and spacing if (isNaN(parseInt(t_form.tborder.value)) && t_form.tborder.value != '') { alert('Error: Border is not a number'); t_form.tborder.focus(); return false; } if (isNaN(parseInt(t_form.tpadding.value)) && t_form.tpadding.value != '') { alert('Error: Cell padding is not a number'); t_form.tjpadding.focus(); return false; } if (isNaN(parseInt(t_form.tspacing.value)) && t_form.tspacing.value != '') { alert('Error: Cell spacing is not a number'); t_form.tspacing.focus(); return false; } return true; } function okClick() { if(tbvaluecheck()) { var newTb = {}; newTb.width = (t_form.twidth.value)?(t_form.twidth.value + t_form.twtype.value):''; newTb.height = (t_form.theight.value)?(t_form.theight.value + t_form.thtype.value):''; // alert(newtable.height); //return; newTb.border = t_form.tborder.value; newTb.cols = t_form.tcols.value; newTb.rows = t_form.trows.value newTb.cellPadding = t_form.tpadding.value; newTb.cellSpacing = t_form.tspacing.value; newTb.bgColor = t_form.tbgcolor.value; window.returnValue = newTb; window.close(); } } function setSample() { try { t_form.color_sample.style.backgroundColor = t_form.tbgcolor.value; } catch (excp) {} } //--> </script> <style> table, tr, td, input, select { font-size:9pt; color:333333; } .box { border-top:1px solid #808080; border-bottom:1px solid #FFFFFF; border-left:1px solid #808080; border-right:1px solid #FFFFFF; } .box2 { border-top:1px solid #FFFFFF; border-bottom:1px solid #808080; border-left:1px solid #FFFFFF; border-right:1px solid #808080; } </style> </head> <body onLoad="Init()" bgColor="#D4D0C8"><br> <div style='position:absolute; top:13; left:30; width:60'> <table width='100%' cellpadding='0' cellspacing='0' bgcolor='buttonface'> <tr align='center'> <td>Ç¥ ¼Ó¼º</td> </tr> </table> </div> <table width='90%' align='center' border='0' cellpadding='0' cellspacing='0' class='box'> <form name="t_form"> <tr> <td class='box2'> <table border="0" cellspacing="0" cellpadding="0" width="320" align='center'> <tr height="15"> <td colspan=7'></td> </tr> <tr height="30"> <td width="50">ÁÙ</td> <td width="10">:</td> <td width="90"><input type="text" name="trows" size="3" maxlength="3" class="input"></td> <td width="30"></td> <td width="50">Ä</td> <td width="10">:</td> <td width="90"><input type="text" name="tcols" size="3" maxlength="3" class="input"></td> </tr> <tr height="30"> <td>³ÐÀÌ</td> <td>:</td> <td><input type="text" name="twidth" size="3" maxlength="3" class="input"> <select size="1" name="twtype"> <option value="%">%</option> <option value="px">px</option> </select></td> <td></td> <td>³ôÀÌ</td> <td>:</td> <td><input type="text" name="theight" size="3" maxlength="3" class="input"> <select size="1" name="thtype"> <option value="%">%</option> <option value="px">px</option> </select></td> </tr> <tr height="30"> <td>Å׵θ®</td> <td>:</td> <td colspan="5"><input type="text" name="tborder" size="2" maxlength="2" class="input"> Pixels</td> </tr> <tr height="30"> <td>padding</td> <td>:</td> <td><input type="text" name="tpadding" size="3" maxlength="3" class="input"></td> <td></td> <td>spacing</td> <td>:</td> <td><input type="text" name="tspacing" size="3" maxlength="3" class="input"></td> </tr> <tr height="30"> <td colspan="7"><table cellpadding="0" border="0" cellspacing="0"> <tr> <td width="50">¹è°æ»ö</td> <td width="10">:</td> <td width="40"><div style="border:1px solid #333333; width:50; height:20"><table width="100%" height="100%" cellpadding="0" cellspacing="0" id="color_view"> <tr align='center'> <td style='font-size:8pt'>COLOR</td> </tr> </table></div></td> <td width='2'></td> <td width="55"><input type="text" name="tbgcolor" size="7" maxlength="7" class="input" onKeyUp="setSample()"></td> <td width='2'></td> <td><input type='button' value='»ö¼±ÅÃ' onClick="showColorPicker(tbgcolor.value)"></td> </tr> </table></td> </tr> <tr height='5'> <td></td> </tr> </table> </td> </tr> </table> <table width='100%' cellpadding='0' cellspacing='0'> <tr height='12'> <td></td> </tr> <tr> <td colspan="8" align="center" valign="bottom"> <input type="button" value=" È® ÀÎ " onClick="okClick()"> <input type="button" value=" Ãë ¼Ò " onClick="window.close()"> </td> </tr> </form> </table> </body> </html>