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

📄 officecreate.php

📁 网页打卡钟系统,源码提供给大家学习一下啦!希望给大家带来帮助
💻 PHP
📖 第 1 页 / 共 3 页
字号:
}echo "            <table align=center class=table_border width=60% border=0 cellpadding=3 cellspacing=0>\n";echo "            <form name='form' action='$self' method='post'>\n";echo "              <tr>\n";echo "                <th class=rightside_heading nowrap halign=left colspan=3><img src='../images/icons/brick_add.png' />&nbsp;&nbsp;&nbsp;Create Office                </th>\n";echo "              </tr>\n";echo "              <tr><td height=15></td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Office Name:</td><td class=table_rows colspan=2                       width=80% style='padding-left:20px;'>                      <input type='hidden' name='post_officename' value='$post_officename'>$post_officename</td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Create Groups Within This Office?</td><td                       class=table_rows colspan=2 width=80% style='padding-left:20px;'>                      <input type='hidden' name='create_groups' value='$create_groups'>$create_groups</td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>How Many?</td><td class=table_rows colspan=2                       width=80% style='padding-left:20px;'>                      <input type='hidden' name='how_many' value='$how_many'>$how_many</td></tr>\n";echo "              <tr><td height=15></td></tr>\n";echo "            </table>\n";echo "            <br /><br />\n";if (@$empty_groupname == '1')  {echo "            <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr>\n";echo "                <td class=table_rows width=20 align=center><img src='../images/icons/cancel.png' /></td><td class=table_rows_red>                    A Group Name is required.</td></tr>\n";echo "            </table>\n";} elseif (@$evil_groupname == '1') {echo "            <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr>\n";echo "                <td class=table_rows width=20 align=center><img src='../images/icons/cancel.png' /></td><td class=table_rows_red>                    Alphanumeric characters, hyphens, underscores, spaces, and periods are allowed when creating a Group Name.</td></tr>\n";echo "            </table>\n";} elseif (@$groupname_array_cnt != @$unique_groupname_array_cnt) {echo "            <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr>\n";echo "                <td class=table_rows width=20 align=center><img src='../images/icons/cancel.png' /></td><td class=table_rows_red>                    Duplicate Group Name exists.</td></tr>\n";echo "            </table>\n";}if ((@$empty_groupname != '1') && (@$evil_groupname != '1') && (@$groupname_array_cnt == @$unique_groupname_array_cnt)) {echo "            <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr>\n";if ($how_many == '1') {echo "              <td class=table_rows width=20 align=center><img src='../images/icons/accept.png' /></td><td class=table_rows_green>                  &nbsp;$how_many group was created within the <b>$post_officename</b> office successfully.</td></tr>\n";} elseif ($how_many > '1') {echo "              <td class=table_rows width=20 align=center><img src='../images/icons/accept.png' /></td><td class=table_rows_green>                  &nbsp;$how_many groups were created within the <b>$post_officename</b> office successfully.</td></tr>\n";}echo "            </table>\n";}echo "            <table align=center valign=top width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr><td height=15></td></tr>\n";for ($x=0;$x<$how_many;$x++) {$y = $x+1;if ((@$empty_groupname == '1') || (@$evil_groupname == '1') || (@$groupname_array_cnt != @$unique_groupname_array_cnt)) {echo "              <tr><td class=table_rows colspan=2>$y.&nbsp;&nbsp;&nbsp;&nbsp;                      <input type='text' size='25' maxlength='50' name='input_group_name[$y]' value=\"$input_group_name[$y]\"></td></tr>\n";} else {echo "              <tr><td class=table_rows colspan=2>$y.&nbsp;&nbsp;&nbsp;&nbsp;$input_group_name[$y]</td></tr>\n";}} // end for loopecho "            </table>\n";echo "            <table align=center width=60% border=0 cellpadding=0 cellspacing=3>\n";if ((@$empty_groupname == '1') || (@$evil_groupname == '1') || (@$groupname_array_cnt != @$unique_groupname_array_cnt)) {echo "              <tr><td height=20>&nbsp;</td></tr>\n";echo "              <tr><td width=30><input type='image' name='submit' value='Create Office' align='middle'                       src='../images/buttons/next_button.png'></td><td><a href='officeadmin.php'><img src='../images/buttons/cancel_button.png'                       border='0'></td></tr></table></form></td></tr>\n";include '../footer.php'; exit;} else {echo "              <tr><td height=20 align=left>&nbsp;</td></tr>\n";echo "              <tr><td><a href='officecreate.php'><img src='../images/buttons/done_button.png' border='0'></td></tr></table></td></tr>\n";include '../footer.php'; exit;}} else {if (!isset($how_many)) {$query = "insert into ".$db_prefix."offices (officename) values ('".$post_officename."')";$result = mysql_query($query);echo "            <table align=center class=table_border width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr>\n";echo "                <td class=table_rows width=20 align=center><img src='../images/icons/accept.png' /></td><td class=table_rows_green>                &nbsp;Office created successfully.</td></tr>\n";echo "            </table>\n";echo "            <br />\n";}echo "            <form name='form' action='$self' method='post'>\n";echo "            <table align=center class=table_border width=60% border=0 cellpadding=3 cellspacing=0>\n";echo "              <tr>\n";echo "                <th class=rightside_heading nowrap halign=left colspan=3><img src='../images/icons/brick_add.png' />&nbsp;&nbsp;&nbsp;Create Office                </th></tr>\n";echo "              <tr><td height=15></td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Office Name:</td><td class=table_rows colspan=2                       width=80% style='padding-left:20px;'>                      <input type='hidden' name='post_officename' value='$post_officename'>$post_officename</td></tr>\n";echo "              <tr><td class=table_rows height=25 width=20% style='padding-left:32px;' nowrap>Create Groups Within This Office?</td><td                       class=table_rows colspan=2 width=80% style='padding-left:20px;'>\n";if ($create_groups == "1") {$tmp_create_groups = "Yes";}else {$tmp_create_groups = "No";}echo "                      <input type='hidden' name='create_groups' value='$create_groups'>$tmp_create_groups</td></tr>\n";if (!isset($how_many)) {echo "              <tr><td height=15></td></tr>\n";echo "            </table>\n";echo "            <table align=center width=60% border=0 cellpadding=0 cellspacing=3>\n";echo "              <tr><td height=20 align=left>&nbsp;</td></tr>\n";echo "              <tr><td><a href='officecreate.php'><img src='../images/buttons/done_button.png' border='0'></td></tr></table></td></tr>\n";include '../footer.php'; exit;}if (isset($how_many)) {echo "              <tr><td class=table_rows height=20 width=20% style='padding-left:32px;' nowrap>How Many?</td><td class=table_rows colspan=2                       width=80% style='padding-left:20px;'>                      <input type='hidden' name='how_many' value='$how_many'>$how_many</td></tr>\n";echo "              <tr><td height=15></td></tr>\n";echo "            </table>\n";echo "            <table align=center valign=top width=60% border=0 cellpadding=0 cellspacing=3>\n";if ($how_many == '1') {echo "              <tr><td height=40 class=table_rows colspan=2>You have chosen to create <b>$how_many</b> group within the                       <b>$post_officename</b> office. Please input the group name below.</td></tr>\n";} elseif ($how_many > '1') {echo "              <tr><td height=40 class=table_rows colspan=2>You have chosen to create <b>$how_many</b> groups within the                       <b>$post_officename</b> office. Please input the group names below.</td></tr>\n";}for ($x=0;$x<$how_many;$x++) {$y = $x+1;echo "              <tr><td class=table_rows colspan=2>$y.&nbsp;&nbsp;&nbsp;&nbsp;                      <input type='text' size='25' maxlength='50' name='input_group_name[$y]'></td></tr>\n";}}echo "              <tr><td height=15></td></tr>\n";echo "              <tr><td width=30><input type='image' name='submit' value='Create Office' align='middle'                       src='../images/buttons/next_button.png'></td><td><a href='officeadmin.php'><img src='../images/buttons/cancel_button.png'                       border='0'></td></tr></table></form></td></tr>\n";include '../footer.php'; exit;}}?>

⌨️ 快捷键说明

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