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

📄 admin_references.php3

📁 FIREFLY 是一个多用户专业帮助桌面系统
💻 PHP3
字号:
<? /* init */  include "../include/config.php3";  include "../include/header.inc";$tables_names = array("refenttype" => $msg_entity_type,                      "refcivility"=> $msg_civility_type,                      "refpertype" => $msg_person_type,                      "refadrtype" => $msg_address_type,                      "refcountry" => $msg_country_type,                      "refphonetype"=>$msg_phone_type,                      "refoption"   =>$msg_option_type,                      "refacttype"  =>$msg_action_type,                      "refdoc"      =>$msg_menu_doc,                      "refemail"    =>$msg_internet_type,                      "langues"     =>"Languages"                      );$applis_datas = SQL_GET_APPLIS($dbproc);$title = $msg_reference_title;include "../include/header.inc";?><TABLE width="90%" cellspacing="2" border="0" cellpadding="2"><TR>    <TD class="color_title" colspan="2">        <? print "<h1>$title</h1>"; ?>    </TD></TR><TR>    <TD class="color_title" width="50%">        <? print $msg_search_reference_criteria ?>    </TD>    <TD class="color_title" width="50%">        <? print $msg_reference_select ?>    </TD></TR><TR>    <TD class="tdcl" valign="top">        <?        while(list($tid,$msg) = each ($tables_names))            {             if ($tid == $table_id)                $msg = HIGHLIGHT($msg,$msg);             print "[<A HREF='admin_references.php3?table_id=$tid'>$msg</A>]<BR>\n";            }        print "<HR>\n";        while(list($i,$content) = each ($applis_datas))            {            $msg = $msg_level." ".$content["lbl"];            if ($appli_id == $content["id"])                $msg = HIGHLIGHT($msg,$msg);             print "[<A HREF='admin_references.php3?table_id=refprofiles&appli_id=".$content["id"]."'>$msg</A>]<BR>\n";            }        ?>    </TD>    <TD class="tdcl" valign="top" >        <?        if ($table_id)            {            $ref_datas = SQL_READ_REF_TABLE($dbproc,$table_id,$appli_id);            while (list($useless,$content) = each ($ref_datas))                  {                  if ($content['id'] == $id)                        {                        $lbl = HIGHLIGHT($content['lbl'],$content['lbl']);                        $lbl_txt = $content['lbl'];                        $multi = $content['opt_multi'];                        $cty_code = $content['cty_code'];                        $cty_prefix = $content['cty_phn_prefix'];                        $level = $content['level'];                        $lang_ext = $content['lang_ext'];                        }                  else                        $lbl = $content['lbl'];                  print "[<A HREF='admin_references.php3?table_id=$table_id&id=".$content['id']."&appli_id=$appli_id'>$lbl</A>]<BR>\n";                  }            }        print "<hr>[<A HREF='admin_references.php3?table_id=$table_id&appli_id=$appli_id'>$msg_add</A>]";        ?>    </TD></TR><TR>    <TD class="color_title" colspan="2">    <?    if ($table_id)        {        print "<FORM METHOD='POST' ACTION='admin_references_do.php3'>\n";        print "<INPUT TYPE='HIDDEN' NAME='table_id' VALUE='$table_id'>\n";        print "<INPUT TYPE='HIDDEN' NAME='id' VALUE='$id'>\n";        print "<INPUT TYPE='HIDDEN' NAME='appli_id' VALUE='$appli_id'>\n";        print "<INPUT TYPE='label' NAME='label' VALUE=\"$lbl_txt\" SIZE='32'>\n";        //cas particuliers        switch ($table_id)            {            case "refoption" :            print " Multi : <INPUT TYPE='CHECKBOX' name='multi' ";            if ($multi == "t")                print "CHECKED";            print ">";            break;            case "refcountry" :            print "$msg_country_code<INPUT TYPE='TEXT' NAME='code' VALUE='$cty_code' SIZE='2' MAXLENGTH='2'>\n";            print "$msg_country_phone<INPUT TYPE='TEXT' NAME='phn_prefix' VALUE='$cty_prefix' SIZE='4' MAXLENGTH='4'>\n";            break;            case "refprofiles" :            print "$msg_level<INPUT TYPE='TEXT' NAME='level' VALUE='$level' SIZE='3' MAXLENGTH='3'>\n";            break;            case "langues" :            print "Ext:<INPUT TYPE='TEXT' NAME='lang_ext' VALUE='$lang_ext' SIZE='2' MAXLENGTH='2'>\n";            break;            default:            }        if($id)            $submit = $msg_validate;        else            $submit = $msg_add;        print "<INPUT TYPE='submit' name='submit' value='$submit'>\n";        print "</FORM>";        }    else        print "&nbsp;";    ?>    </TD></TR></TABLE><?include "../include/footer.inc";?>

⌨️ 快捷键说明

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