⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _document_file_main.php

📁 极限OA开源系统
💻 PHP
📖 第 1 页 / 共 2 页
字号:
		{alert("不能在根目录下创建文件夹!");
		 document.MyForm.upfolder.focus();
		 return false;}


	if ( document.MyForm.upfolder.value == 3 && ThrowBlank(document.MyForm.name.value) != document.MyForm.depart_s.value && document.MyForm.edit.value < 1 ) 
		{alert("建立于部门根目录下的文件夹名称必须同部门名!");
		 document.MyForm.name.focus();
		 return false;}

	if ( ThrowBlank(document.MyForm.name.value) == "") 
		{alert("文件夹名称不能为空!");
		 document.MyForm.name.value = "";
		 document.MyForm.name.focus();
		 return false;}
	else {if (document.MyForm.des.value.length > 120 )
			{alert("文件夹备注最多120个字!");
			 document.MyForm.des.focus();
			 return false;}
		  }
	return true;
}
-->
</SCRIPT>
  <p>&nbsp;</p><table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
      <td> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td class="edgingTop"></td>
            <td width="22" class="edgingLabelBg"><img src="./images/edgingLable_left.gif"></td>
            <td class="edgingLabelBg"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td class="edgingLabel" nowrap align="center">
<? if($edit) { ?>

修 改 文 件 夹 - Edit Folder
<? } else { ?>
添 加 文 件 夹 - Add Folder
<? } ?>
</td>
                </tr>
              </table>
            </td>
            <td width="11" class="edgingLabelBg"><img src="./images/edgingLable_right.gif"></td>
          </tr>
        </table>
        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="edgingTable_1">
          <tr> 
            <td class="edgingTd_1"> 
              <table width="100%" cellpadding="20" border="1" cellspacing="0" height="100%" bordercolordark="#ffffff" class="edgingTable_2">
                <tr align="center"> 
                  <td>
                    <!-- 内容区开始 -->
                    <FORM name=MyForm id=MyForm method=post action="document.php?action=file_main&fid=<?=$fid?>&sysaction=folderadd&edit=<?=$edit?>">
                      <table width="96%" cellspacing="0"><input type=hidden name=edit value="<?=$edit?>">
                        <tr> 
                          <td align="center"><fieldset style="width:96%"><legend class="LabelTitle">
<? if($edit) { ?>

<img src="./images/icon_Edit.gif" align="absmiddle" width="32" height="32"> 
                            [修改文件夹]
<? } else { ?>
<img src="./images/icon_Add.gif" align="absmiddle" width="32" height="32"> 
                            [添加文件夹]
<? } ?>
</legend> <br>
                            
                          <table width="96%" cellpadding="3">
                            <input type="hidden" name="FolderID" value='3' >
                            <tr> 
                              <td nowrap width="15%" class="Shadow_white">上级文件夹:</td>
                              <td colspan="2" nowrap><?=$foldersel?> &nbsp;<font color="red">*</font> </td>
                            </tr>
                            <tr> 
                              <td nowrap width="15%" class="Shadow_white">文件夹名称:</td>
                              <td colspan="2" nowrap> 
                                <input type="text" name="name" maxlength=10 style="width:300" value="<?=$fol_t['name']?>">
                                &nbsp;<font color="red">*</font> </td>
                            </tr>
                            <tr> 
                              <td nowrap valign="top" class="Shadow_white">文件夹备注:</td>
                              <td colspan="2"> 
                                <textarea name="des" style="width:300; height:150"><?=$fol_t['des']?></textarea>
                              </td>
                            </tr>
                            <tr id="foldertypetr"
<? if($upid != 3) { ?>

style="display:none"
<? } ?>
> 
                              <td nowrap valign="top" class="Shadow_white">部门列表:</td>
                              <td colspan="2"><input type="hidden" name="depart_s" value="<?=$fol_t['name']?>">
								
<? if(is_array($depart_list)) {
     foreach($depart_list as $key => $val) { ?>
<input type="radio" name="depart" value="<?=$val['name']?>" onclick="this.form.name.value='<?=$val['name']?>';this.form.depart_s.value='<?=$val['name']?>';" class="radio"<?=$val['sel']?>><?=$val['name']?><br>
<?   } 
    } ?>

                              </td>
                            </tr>
                            <tr> 
                              <td nowrap width="15%" class="Shadow_white">展开菜单顺序:</td>
                              <td colspan="2" nowrap> 
                                <input type="text" name="dorder" maxlength=10 style="width:100" value="<?=$fol_t['dorder']?>"></td>
                            </tr>
                            <tr> 
							<td></td>
                              <td> <br>
                                <input type="hidden" name="addsubmit" value="yes">
                                <input type="button" value=" 确 定 " class="button" onClick="btAddContinue_ondoc()" onMouseOver="onButton(this);" onMouseOut="offButton(this);" name="btAddFolder">
                                  
                                <input type="reset" value=" 重 填 " class="button" onMouseOver="onButton(this);" onMouseOut="offButton(this);" name="reset">
                                  
                                <input type="button" value=" 返 回 " class="button" onClick="window.document.URL='FolderMain.asp?FolderID=3&Level=1'" onMouseOver="onButton(this);" onMouseOut="offButton(this);" name="button">
                              </td>
                            </tr>
                          </table>
                            <br>
                            </fieldset></td>
                      </tr>
                    </table>
                    </form>
                    <!-- 内容区结束 -->
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
      <td class="shadowRight"></td>
    </tr>
    <tr> 
      <td colspan="2" class="shadowBottom"></td>
    </tr>
  </table>
<? } elseif($sysaction == 'fileadd') { ?>
<script Language=JavaScript src="./scripts/ClientCheck.js"></script>

<script language="javascript">
<!--
function CheckPage()
{
	if (ThrowBlank(document.MyForm.picftp.value) == "" && document.MyForm.id.value == '')
	{
	 alert("上传文件不能为空不能为空!");
	 document.MyForm.picftp.value = "";
	 document.MyForm.picftp.focus();
	 return false;
	}
	return true;
}
function AddDocFile()
{
	if (CheckPage())
	{
		MyForm.action = "document.php?action=file_main&fid=<?=$fid?>&sysaction=fileadd&edit=1&id=<?=$id?>";
		MyForm.submit();
		document.MyForm.btAddFile.disabled = true;
	}
}
//-->
</script>
  <p>&nbsp;</p><table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
      <td> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td class="edgingTop"></td>
            <td width="22" class="edgingLabelBg"><img src="./images/edgingLable_left.gif"></td>
            <td class="edgingLabelBg"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  
                <td class="edgingLabel" nowrap align="center">
<? if($id) { ?>

修 改 文 件 - Edit File
<? } else { ?>
添 加 文 件 - Add File
<? } ?>
</td>
                </tr>
              </table>
            </td>
            <td width="11" class="edgingLabelBg"><img src="./images/edgingLable_right.gif"></td>
          </tr>
        </table>
        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="edgingTable_1">
          <tr> 
            <td class="edgingTd_1"> 
              <table width="100%" cellpadding="20" border="1" cellspacing="0" height="100%" bordercolordark="#ffffff" class="edgingTable_2">
                <tr align="center"> 
                  <td>
                    <!-- 内容区开始 -->
                    <form method="post" name="MyForm"  enctype="multipart/form-data">
                      <table width="96%" cellspacing="0"><input type=hidden name=id value="<?=$id?>">
                        <tr> 
                          <td align="center" nowrap><fieldset style="width:96%"><legend class="LabelTitle">
<? if($id) { ?>

<img src="./images/icon_Edit.gif" align="absmiddle" width="32" height="32"> 
                            [修改文件]
<? } else { ?>
<img src="./images/icon_Add.gif" align="absmiddle" width="32" height="32"> 
                            [添加文件]
<? } ?>
</legend> <br>
                          <table width="96%" cellpadding="3">
                            <tr> 
                              <td width="20%" nowrap class="Shadow_white">文 件 名 称:</td>
                              <td nowrap> 
                                <input type="text" maxlength=20 name="name" size="50" value="<?=$fil_t['name']?>" style="WIDTH: 300px"></td>
                            </tr>
								
                            <tr height="30"> 
                              <td width="20%" nowrap class="Shadow_white">选 择 文 件: </td>
                              <td>
<? if($id) { ?>

当前附件 <img src='images/document/filetype/<?=$fil_t['typeimg']?>.gif' width='16' height='16' align='absmiddle'> <?=$fil_t['name']?>.<?=$fil_t['extension']?><br>
		  
									<input class="radio" type="radio" name="attachedit" value="keep" checked onclick="this.form.picftp.disabled=this.checked;">  保留文件 
									<input class="radio" type="radio" name="attachedit" value="del" onclick="this.form.picftp.disabled=this.checked;"> 删除文件 
									<input class="radio" type="radio" name="attachedit" value="new" onclick="this.form.picftp.disabled=!this.checked;"> 上传新文件<br>
									<input name="picftp" type="file" value="" style="WIDTH: 300px" disabled>
<? } else { ?>
<input name="picftp" type="file" value="" style="WIDTH: 300px">
<? } ?>
</td>
                            </tr>

                            <tr> 
                              <td colspan="2">&nbsp; </td>
                            </tr>
                            <input type=hidden name="hdnShowModel" value="Yes">
                            <tr> 
                              <td align="center" colspan="2"> 
                                <input type="button" value=" 确 定 " class="button" onClick="AddDocFile()" onMouseOver="onButton(this);" onMouseOut="offButton(this);" name="btAddFile">
                                  
                                <input type="reset" value=" 重 填 " class="button" onMouseOver="onButton(this);" onMouseOut="offButton(this);" name="btReWrite">
                              </td>
                            </tr>
                          </table>
                            <br>
                            </fieldset></td>
                      </tr>
                    </table>
                    </form>
                    <!-- 内容区结束 -->
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
      <td class="shadowRight"></td>
    </tr>
    <tr> 
      <td colspan="2" class="shadowBottom"></td>
    </tr>
  </table>
<? } elseif($sysaction == 'folderadd') { ?>

<? } elseif($sysaction == 'folderadd') { ?>

<? } elseif($sysaction == 'folderadd') { ?>

<? } elseif($sysaction == 'folderadd') { ?>
<? } ?>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -