MINI MINI MANI MO

Path : /home/lhcar/www/mobile/
File Upload :
Current File : /home/lhcar/www/mobile/sub05_write.php

<?
require_once "./_common/common.php";
include $_SERVER['DOCUMENT_ROOT'].'/_config/global.php';
include $_SERVER['DOCUMENT_ROOT'].'/_config/_class/phpfun.class.php';
$phpfun = new phpfun();
$SID = session_id();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>


<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="css/scale.css" rel="stylesheet" type="text/css">
</head>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<div id="top">
<? include "inc/sub_top.html"; ?>
</div>

<tr>	
			<td>
					</td>
</tr>
<tr>
	<td>	
			<!-- navi start-->
							<table id="navi"  width="100%"  height="60"  border="0" cellpadding="0" cellspacing="0">
  <tr>	
									<td>
										<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<?if(!$tt){$ts1="color: #FF0000;font-weight:bolder;";$ts2="color: #000000";$ts3="color: #000000";}else{$ts2="color: #FF0000;font-weight:bolder;";$ts1="color: #000000";}?>
											<tr>
												<td width="20"><table align="left"><tr><td style="padding-left:10px;"><strong>°í°´¼¾ÅÍ : </strong><a href="/sub05.php"><font style="<?=$ts1?>">°øÁö»çÇ×</font></a> ¤Ó <a href="/sub05.php"><font style="<?=$ts2?>">ÀÚÁÖÇÏ´ÂÁú¹®</font></a> ¤Ó <a href="/sub05.php?tt=5"><font style="<?=$ts3?>">ÀÚ·á½Ç</font></a></td>
												</tr></table></td>
												
											</tr>
                                            <tr><td height="1" bgcolor="#0066CC"></td></tr>
                                            <tr><td height="10" ></td></tr>
										</table>								  </td>
							    </tr>
							 </table>
	  <!-- navi end-->
	</td>
</tr>

<tr>
	<td>	
			<div align="center">
			  <!-- contents start-->
			<table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">

                  <tr>
                    <td height="5"><style type="text/css">
.viewtable { border-collapse:collapse; margin-top:0px; }
.viewtable th {background-color:#efefef; height:25px;}
.viewtable td {text-align:left; padding-left:7px;}

.viewtable th.topline, .viewtable td.topline {border-top:2px solid #0070b1;}
.viewtable th,.viewtable td {border-bottom:1px solid #0070b1;}
input.sbutton {border:1px solid #877c6b; text-align:center; background-color:#877c6b;  line-height:none; height:20px;color:#ffffff; padding:0px 3px; cursor:hand;}
						
.bbsbg{background-color:#dff6ff;border:1px solid #877c6b; }
.Chk {width:13px; height:13px; margin-top:-3px;}
                </style>
                        <form action="./write_ok.php" method='post' enctype="multipart/form-data" name='writeForm' id="writeForm" style="margin:0px;">
                          <input type="hidden" name="id" value="notice" />
                          <input type="hidden" name="mode" value="write" />
                          <input type="hidden" name="sub_mode" value="edit" />
                          <input type="hidden" name="ridx" value="0" />
                          <input type="hidden" name="page" value="" />
                          <input type="hidden" name="no" value="6" />
                          <table  width="100%"  border="0"  cellspacing="0" cellpadding="4" class="viewtable">
                            <tr>
                              <th width="15%" class="topline" align="center">À̸§</th>
                              <td colspan="3" width="85%" class="topline"><input type="text" value='Á¤Áø¿ë' name='name' /></td>
                            </tr>
                            <!--		      <tr>
            <th width="15%" class="topline" align="center">À̸§</th>
            <td colspan="3" width="85%" class="topline"><input type=text value='Á¤Áø¿ë' name='name'></td>
      </tr>			 
	  -->
                            <tr>
                              <th>Á¦¸ñ</th>
                              <td colspan="3" ><input type="text" size="55" name="subject" style="width:380" value="test" />
                                  <input type="checkbox" class="Chk" name="notice" value="Y"  checked="checked"/>
                                °øÁö
                                <input type="checkbox" class="Chk" name="security" value="Y">
                                ºñ¹Ð±Û </td>
                            </tr>
                            <tr>
                              <td colspan="4" align="center" style="padding-left:0px;"><table width="100%"  border="0" cellspacing="0" cellpadding="0" align="center"  style="margin:10px 0px;" >
                                  <tr>
                                    <td  style="padding-left:0px;"><textarea rows="12" name="memo" id="ir1" style="width:100%; height:180px;display:none;" wrap="physical"><p>test&nbsp;</p>
                  </textarea>
                                        <script type="text/javascript" src="/board/smarteditor2/js/HuskyEZCreator.js" charset="utf-8"></script>
                                        <script type="text/javascript">
var oEditors = [];

// Ãß°¡ ±Û²Ã ¸ñ·Ï
//var aAdditionalFontSet = [["MS UI Gothic", "MS UI Gothic"], ["Comic Sans MS", "Comic Sans MS"],["TEST","TEST"]];

nhn.husky.EZCreator.createInIFrame({
	oAppRef: oEditors,
	elPlaceHolder: "ir1",
	sSkinURI: "/board/smarteditor2/SmartEditor2Skin.html",	
	htParams : {
		bUseToolbar : true,				// Åø¹Ù »ç¿ë ¿©ºÎ (true:»ç¿ë/ false:»ç¿ëÇÏÁö ¾ÊÀ½)
		bUseVerticalResizer : true,		// ÀÔ·Ââ Å©±â Á¶Àý¹Ù »ç¿ë ¿©ºÎ (true:»ç¿ë/ false:»ç¿ëÇÏÁö ¾ÊÀ½)
		bUseModeChanger : true,			// ¸ðµå ÅÇ(Editor | HTML | TEXT) »ç¿ë ¿©ºÎ (true:»ç¿ë/ false:»ç¿ëÇÏÁö ¾ÊÀ½)
		//aAdditionalFontList : aAdditionalFontSet,		// Ãß°¡ ±Û²Ã ¸ñ·Ï
		fOnBeforeUnload : function(){
			//alert("¿Ï·á!");
		}
	}, //boolean
	fOnAppLoad : function(){
		//¿¹Á¦ ÄÚµå
		//oEditors.getById["ir1"].exec("PASTE_HTML", ["·ÎµùÀÌ ¿Ï·áµÈ ÈÄ¿¡ º»¹®¿¡ »ðÀԵǴ textÀÔ´Ï´Ù."]);
	},
	fCreator: "createSEditor2"
});

function pasteHTML() {
	var sHTML = "<span style='color:#FF0000;'>À̹ÌÁöµµ °°Àº ¹æ½ÄÀ¸·Î »ðÀÔÇÕ´Ï´Ù.<\/span>";
	oEditors.getById["ir1"].exec("PASTE_HTML", [sHTML]);
}

function showHTML() {
	var sHTML = oEditors.getById["ir1"].getIR();
	alert(sHTML);
}
	
function submitContents(elClickedObj) {
	oEditors.getById["ir1"].exec("UPDATE_CONTENTS_FIELD", []);	// ¿¡µðÅÍÀÇ ³»¿ëÀÌ textarea¿¡ Àû¿ëµË´Ï´Ù.
	
	// ¿¡µðÅÍÀÇ ³»¿ë¿¡ ´ëÇÑ °ª °ËÁõÀº À̰÷¿¡¼­ document.getElementById("ir1").value¸¦ ÀÌ¿ëÇØ¼­ ó¸®ÇÏ¸é µË´Ï´Ù.
	
	try {
		elClickedObj.form.submit();
	} catch(e) {}
}

function setDefaultFont() {
	var sDefaultFont = '±Ã¼­';
	var nFontSize = 24;
	oEditors.getById["ir1"].setDefaultFont(sDefaultFont, nFontSize);
}
                    </script>                                    </td>
                                  </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <th>ÆÄÀÏ</th>
                              <td  colspan='3'><input type="file" size="80" name="upfile[]" class="textarea_01" style="width:400px;" />
                                &nbsp; </a> </td>
                            </tr>
                            <tr>
                              <th>ÆÄÀÏ</th>
                              <td  colspan='3'><input type="file" size="80" name="upfile[]" class="textarea_01" style="width:400px;" />
                                &nbsp; </a> </td>
                            </tr>
                          </table>
                        </form>
                      <br />
                        <center>
                          <img src='/images/list_bt.jpg' class="imgbt1" onclick="location.href='sub05.php';" style="cursor:pointer;display:inline;"/> <img src='/images/w_bt.jpg' class="imgbt1" onclick="write_ok()" style="cursor:pointer;display:inline;"/><br />
                          <br />
                          <br />
                        </center>
                      <script>
	function write_ok(){
		var f=document.writeForm;
				if(!f.subject.value){
			alert('Á¦¸ñÀ» ÀÔ·Â ÇØÁÖ¼¼¿ä.');
			f.subject.focus();
			return;
		}
						submitContents();
		if(!f.memo.value){
			alert('³»¿ëÀ» ÀÔ·Â ÇØÁÖ¼¼¿ä.');
			return;
		}
		f.submit();
	}
                  </script>                    </td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td height="30">&nbsp;</td>
              </tr>
            </table>
	  </div>
			<!-- contents end--></td>
</tr>

<div id="btm">
<? include "inc/btm.html"; ?>
</div>
  


OHA YOOOO