I am a serious newbie with PHP and have inherited a dynamic website and I am trying to add a dynamic page to the control panel/manager page of the website. I have figured out how to add a dynamic page using xml but the problem is I cannot attach a table to the proper xml code. Here is the xml code and the page that i added is under "list no=204 test".
<?xml version="1.0" encoding="gb2312"?>
<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by wangdong (uestc) -->
<configuration>
<!-- 左侧树形菜单的配置信息 -->
<tree name="left menu">
<node name="System Manage">
<list name="Account Manage" no="0" />
</node>
<node name="Ministry">
<list name="Ministry Manage" no="201" />
</node>
<node name="Events">
<list name="Events Manage" no="202" />
<list name="Upcoming Manage" no="203" />
</node>
<node name="Test">
<list name="Test Manage" no="204"/>
</node>
</tree>
<!-- 每个功能节点的设置参数 -->
<list no="0"
win_title="Account Manage->System Account Manage"
data_table="user"
field_name="id,user_id,user_name,user_password"
field_name_cn="id,userID,username,password"
field_help=""
field_type="int,vchar2,vchar2,vchar2"
field_default_value=""
upload_path=""
simple_select=""
select=""
grd_title="id,userID,username"
grd_field="id,user_id,user_name"
grd_width="10%,45%,45%"
grd_from="user"
grd_where=""
grd_order=""
menu_function="modify,search,refresh"
menu_function_1="save,return"
/>
<list no="201"
win_title="Ministry->Ministry Content Manage"
data_table="t_ministry"
field_name="id,w_text"
field_name_cn="id,content"
field_help=""
field_type="int,text"
field_default_value=""
upload_path="/images/"
simple_select=""
select=""
grd_title="id,content"
grd_field="id,w_text"
grd_width="10%,90%"
grd_from="t_ministry"
grd_where=""
grd_order=""
menu_function="modify,search,refresh"
menu_function_1="save,return"
/>
<list no="202"
win_title="Events->Events Content Manage"
data_table="t_events"
field_name="id,w_title,w_date,w_intro,w_url"
field_name_cn="id,title,date,introduction,upload"
field_help=""
field_type="int,vchar2,date,vchar2,upload"
field_default_value=""
upload_path="/files/"
simple_select=""
select=""
grd_title="id,title,date,intro"
grd_field="id,w_title,w_date,w_intro"
grd_width="10%,20%,20%,50%"
grd_from="t_events"
grd_where=""
grd_order=""
menu_function="modify,search,refresh,add,delete"
menu_function_1="save,return"
/>
<list no="203"
win_title="Events->Upcoming Content Manage"
data_table="t_upcom"
field_name="id,w_text"
field_name_cn="id,content"
field_help=""
field_type="int,text"
field_default_value=""
upload_path="/images/"
simple_select=""
select=""
grd_title="id,content"
grd_field="id,w_text"
grd_width="10%,90%"
grd_from="t_upcom"
grd_where=""
grd_order=""
menu_function="modify,search,refresh,add,delete"
menu_function_1="save,return"
/>
<list no="204"
win_title="Test->Test Content Manage"
data_table="t_ministry"
field_name="id,w_text"
field_name_cn="id,content"
field_help=""
field_type="int,text"
field_default_value=""
upload_path=""
simple_select=""
select=""
grd_title="id,content"
grd_field="id,w_text"
grd_width="10%,90%"
grd_from="t_ministry"
grd_where=""
grd_order=""
menu_function="modify,search,refresh"
menu_function_1="save,return"
/>
</configuration>
The "t_ministry", "t_events", and "t_upcom" are created tables or uploadfiles (i can't find them anywhere) I have created a test page under list no =204 but the only way I can make it work is to use the "t_ministry" table.
I have two questions:
1. Is the "t_ministry" table embedded where they are not viewable?
2. If this is so, how can I create a simple text table that will be able to be directed by the xml code data_table= and grd_from=
Any help would be greatly appreciated