<script language="javascript">
 function list_btn() {
   var form = document.sub_form;
   form.mode.value = "list";
   form.submit();
}
</script>

<style type="text/css">

 .form_input { border-style: solid; border-left-width: 3; border-right-width: 1; border-top-width: 1;
               border-bottom-width: 1; border-color: #4682B4; padding-left: 3; }

</style>
                  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                    <form name="sub_form" method="post" action="/main.htm" ENCTYPE="multipart/form-data">
                    <input type="hidden" name="mode">
                    <input type="hidden" name="page" value="<?=$page?>">
                    <input type="hidden" name="topMenu" value="<?=$topMenu?>">
                    <input type="hidden" name="subMenu" value="<?=$subMenu?>">

 

=======================================================================

<?

if ($mode=="write_form" || $mode=="edit_form"){
   include $DOCUMENT_ROOT."$topMenu/$subMenu/write_form.htm";
}else if($mode=="write" || $mode=="edit" || $mode=="delete" ){
   include $DOCUMENT_ROOT."$topMenu/$subMenu/form_action.htm";
}else{
   include $DOCUMENT_ROOT."$topMenu/$subMenu/list.htm";
}
exit;
?>

 

아썅 어케질문해야될지도몰르겠네 뭔수로이새기들이 이동하는거야 나븐새기들