代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
PHP
】
表单生成器
作者:
Dezai.CN
/ 发布于
2011/6/11
/
426
<div><span style="color: rgb(0,0,0); font-weight: bold"><?</span> <span style="font-style: italic; color: rgb(128,128,128)">/*************************************************************************************************** class: form_HTML author: chris case - chrisc@brc2.com purpose: provide a library of HTML form elements and acts as a container for the elements. public functions: addSelect (name) addSelect_item (id,value,description) addTextBox (name,value) addCheckBox (name,value,description) addRadioButton (name,value,description) ***************************************************************************************************/</span> <span style="color: rgb(0,0,0); font-weight: bold">class</span> form_HTML <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,0); font-weight: bold">var</span> <span style="color: rgb(0,0,255)">$method</span>; <span style="color: rgb(0,0,0); font-weight: bold">var</span> <span style="color: rgb(0,0,255)">$action</span>; <span style="color: rgb(0,0,0); font-weight: bold">var</span> <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,0); font-weight: bold">var</span> <span style="color: rgb(0,0,255)">$class</span>; <span style="color: rgb(0,0,0); font-weight: bold">var</span> <span style="color: rgb(0,0,255)">$elements</span>; <span style="color: rgb(0,0,0); font-weight: bold">var</span> <span style="color: rgb(0,0,255)">$getStatus</span>; <span style="font-style: italic; color: rgb(128,128,128)">/* default constructor ** purpose: sets the globals */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> form_HTML<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$method</span>,<span style="color: rgb(0,0,255)">$action</span>,<span style="color: rgb(0,0,255)">$name</span>,<span style="color: rgb(0,0,255)">$class</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">method</span> = <span style="color: rgb(0,0,255)">$method</span>; <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">action</span> = <span style="color: rgb(0,0,255)">$action</span>; <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">name</span> = <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">class</span> = <span style="color: rgb(0,0,255)">$class</span>; <span style="color: rgb(0,0,255)">$elements</span> = <a href="http://www.php.net/array" target="_blank"><span style="color: rgb(0,0,102)">array</span></a><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getStatus</span> = <span style="color: rgb(204,102,204)">0</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add new element ** purpose: adds an entity to the container */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addElement<span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$element</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'id'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">nextElementID</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,255)">$location</span> = <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'id'</span><span style="color: rgb(102,204,102)">]</span>; <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">elements</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(0,0,255)">$location</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$element</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'id'</span><span style="color: rgb(102,204,102)">]</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* update element ** purpose: updates an existing form element */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> updateElement<span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$updatedElement</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$id</span> = <span style="color: rgb(0,0,255)">$updatedElement</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'id'</span><span style="color: rgb(102,204,102)">]</span>; <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">elements</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(0,0,255)">$id</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$updatedElement</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> nextElementID<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">return</span> <a href="http://www.php.net/count" target="_blank"><span style="color: rgb(0,0,102)">count</span></a><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">elements</span> <span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> getElement<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$id</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">elements</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(0,0,255)">$id</span><span style="color: rgb(102,204,102)">]</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> numElements<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">return</span> <a href="http://www.php.net/count" target="_blank"><span style="color: rgb(0,0,102)">count</span></a><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">elements</span> <span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* get the next element ** purpose: each time this is called it gets the next element until the end is reached */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> getNext<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">if</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getStatus</span> == <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">numElements</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="font-style: italic; color: rgb(128,128,128)">// is this the end of the elements?</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getStatus</span> = <span style="color: rgb(204,102,204)">0</span>; <span style="font-style: italic; color: rgb(128,128,128)">// reset the sentinal return false; // indicate ending</span> <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$element</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getElement</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getStatus</span> <span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getStatus</span>++; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$element</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add a select box entity to the form ** purpose: adds a select box to the container */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addSelect<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$name</span>,<span style="color: rgb(0,0,255)">$description</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">'select'</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'name'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'selections'</span><span style="color: rgb(102,204,102)">]</span> = <a href="http://www.php.net/array" target="_blank"><span style="color: rgb(0,0,102)">array</span></a><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'description'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$description</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'beginCode'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"<select name='{$element['name']}'>"</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'endCode'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"</select>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">addElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add item to a select box instance ** purpose: adds an option to a select box entity */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addSelect_item<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$id</span>,<span style="color: rgb(0,0,255)">$val</span>,<span style="color: rgb(0,0,255)">$description</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="font-style: italic; color: rgb(128,128,128)">// get the element from the array of elements</span> <span style="color: rgb(0,0,255)">$element</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$id</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(177,177,0)">if</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> != <span style="color: rgb(255,0,0)">'select'</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,0); font-weight: bold">false</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$selections</span> = <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'selections'</span><span style="color: rgb(102,204,102)">]</span>; <span style="color: rgb(0,0,255)">$location</span> = <a href="http://www.php.net/count" target="_blank"><span style="color: rgb(0,0,102)">count</span></a><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$selections</span> <span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,255)">$selections</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(0,0,255)">$location</span><span style="color: rgb(102,204,102)">]</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'value'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$val</span>; <span style="color: rgb(0,0,255)">$selections</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(0,0,255)">$location</span><span style="color: rgb(102,204,102)">]</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'description'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$description</span>; <span style="color: rgb(0,0,255)">$selections</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(0,0,255)">$location</span><span style="color: rgb(102,204,102)">]</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span><span style="color: rgb(0,0,153); font-weight: bold">\t</span><option value='{$selections[$location]['value']}'>{$selections[$location]['description']}</option><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'selections'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$selections</span>; <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">updateElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> getSelectItems<span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$element</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">if</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> != <span style="color: rgb(255,0,0)">'select'</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,0); font-weight: bold">false</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$selections</span> = <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'selections'</span><span style="color: rgb(102,204,102)">]</span>; <span style="color: rgb(177,177,0)">for</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$i</span> = <span style="color: rgb(204,102,204)">0</span>; <span style="color: rgb(0,0,255)">$i</span> < <a href="http://www.php.net/count" target="_blank"><span style="color: rgb(0,0,102)">count</span></a><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$selections</span> <span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,255)">$i</span>++ <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(0,0,255)">$selections</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(0,0,255)">$i</span><span style="color: rgb(102,204,102)">]</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$outp</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add a text box ** purpose: adds a text box to the container */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addTextBox<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$name</span>,<span style="color: rgb(0,0,255)">$value</span>,<span style="color: rgb(0,0,255)">$description</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">'text'</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'name'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'value'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$value</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'description'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$description</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"<input type='text' name='{$element['name']}' value='{$element['value']}'>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">addElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add a check box ** purpose: adds a check box to the container */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addCheckBox<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$name</span>,<span style="color: rgb(0,0,255)">$value</span>,<span style="color: rgb(0,0,255)">$description</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">'checkbox'</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'name'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'value'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$value</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'description'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$description</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"<input type='checkbox' name='{$element['name']}' value='{$element['value']}'>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">addElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add a radio button ** purpose: adds a radio button to the container */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addRadioButton<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$name</span>,<span style="color: rgb(0,0,255)">$value</span>,<span style="color: rgb(0,0,255)">$description</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">'radio'</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'name'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'value'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$value</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'description'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$description</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"<input type='radio' value='{$element['value']}' "</span> . <span style="color: rgb(255,0,0)">"name='{$element['name']}'>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">addElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add a textarea ** purpose: adds a textarea to the container */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addTextArea<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$name</span>,<span style="color: rgb(0,0,255)">$value</span>,<span style="color: rgb(0,0,255)">$description</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">'textarea'</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'name'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'value'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$value</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'description'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$description</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"<textarea name='{$element['name']}'>{$element['value']}</textarea>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">addElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add a submit button ** purpose: add a submit button to the container */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addSubmitButton<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$name</span>,<span style="color: rgb(0,0,255)">$value</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">'submit'</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'name'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'value'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$value</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"<input class='submit' type='submit' name='{$element['name']}' value='{$element['value']}'>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">addElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* add a hidden field ** purpose: add a hidden field to the container */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> addHiddenField<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$name</span>,<span style="color: rgb(0,0,255)">$value</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">'hidden'</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'name'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$name</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'value'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(0,0,255)">$value</span>; <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span> = <span style="color: rgb(255,0,0)">"<input type='hidden' name='{$element['name']}' value='{$element['value']}'>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">addElement</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* get HTML output as a table ** purpose: returns the HTML data from the container with the descriptions on the left and the form elements on the right */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> getTableOfElements_1<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<form method='{$this->method}' action='{$this->action}' name='{$this->name}'><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<table class='{$this->class}' cellspacing=0><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$element</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getNext</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(177,177,0)">while</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$element</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span>"</span>; <span style="color: rgb(177,177,0)">switch</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'select'</span>: <span style="color: rgb(0,0,255)">$selectItems</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getSelectItems</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$element</span> <span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\n</span><span style="color: rgb(0,0,153); font-weight: bold">\t</span><td class='description'>{$element['description']}</td><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span><td><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span>"</span> . <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'beginCode'</span><span style="color: rgb(102,204,102)">]</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(0,0,255)">$selectItems</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span>"</span> . <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'endCode'</span><span style="color: rgb(102,204,102)">]</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span></td><span style="color: rgb(0,0,153); font-weight: bold">\n</span><span style="color: rgb(0,0,153); font-weight: bold">\t</span></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'text'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='description'>{$element['description']}</td><td style='text-align:left;' class='formElement'>{$element['code']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'checkbox'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='description'>{$element['description']}</td><td style='text-align:left;' class='formElement'>{$element['code']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'radio'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='description'>{$element['description']}</td><td style='text-align:left;' class='formElement'>{$element['code']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'textarea'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='description'>{$element['description']}</td><td style='text-align:left;' class='formElement'>{$element['code']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'submit'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td> </td><td class='formElement' style='text-align:left;'>{$element['code']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'hidden'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'code'</span><span style="color: rgb(102,204,102)">]</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$element</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getNext</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"</table><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"</form><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$outp</span>; <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/* get HTML output as a table ** purpose: returns the HTML data from the container with the descriptions on the right and the form elements on the left */</span> <span style="color: rgb(0,0,0); font-weight: bold">function</span> getTableOfElements_2<span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<form method='{$this->method}' action='{$this->action}' name='{$this->name}' class='{$this->class}'><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<table><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$element</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getNext</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(177,177,0)">while</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$element</span> <span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span>"</span>; <span style="color: rgb(177,177,0)">switch</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'type'</span><span style="color: rgb(102,204,102)">]</span><span style="color: rgb(102,204,102)">)</span> <span style="color: rgb(102,204,102)">{</span> <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'select'</span>: <span style="color: rgb(0,0,255)">$selectItems</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getSelectItems</span><span style="color: rgb(102,204,102)">(</span> <span style="color: rgb(0,0,255)">$element</span> <span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span><td class='formElement'><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span>"</span> . <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'beginCode'</span><span style="color: rgb(102,204,102)">]</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(0,0,255)">$selectItems</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span>"</span> . <span style="color: rgb(0,0,255)">$element</span><span style="color: rgb(102,204,102)">[</span><span style="color: rgb(255,0,0)">'endCode'</span><span style="color: rgb(102,204,102)">]</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span></td><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span><td>{$element['description']}</td><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span> . <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\t</span></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'text'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='formElement'>{$element['code']}</td><td class='description'>{$element['description']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'checkbox'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='formElement'>{$element['code']}</td><td class='description'>{$element['description']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'radio'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='formElement'>{$element['code']}</td><td class='description'>{$element['description']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'textarea'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='formElement'>{$element['code']}</td><td class='description'>{$element['description']}</td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(177,177,0)">case</span> <span style="color: rgb(255,0,0)">'submit'</span>: <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<tr><td class='formElement'>{$element['code']}</td><td> </td></tr>"</span>; <span style="color: rgb(177,177,0)">break</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"<span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$element</span> = <span style="color: rgb(0,0,255)">$this</span>-><span style="color: rgb(0,102,0)">getNext</span><span style="color: rgb(102,204,102)">(</span><span style="color: rgb(102,204,102)">)</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"</table><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(0,0,255)">$outp</span> .= <span style="color: rgb(255,0,0)">"</form><span style="color: rgb(0,0,153); font-weight: bold">\n</span>"</span>; <span style="color: rgb(177,177,0)">return</span> <span style="color: rgb(0,0,255)">$outp</span>; <span style="color: rgb(102,204,102)">}</span> <span style="color: rgb(102,204,102)">}</span> <span style="font-style: italic; color: rgb(128,128,128)">/** test code $form = new form_HTML('post','index.php','mainBody','formClass'); $selectId = $form->addSelect('select test','description of the select box'); $form->addSelect_item($selectId,'item1val','item1description'); $form->addSelect_item($selectId,'item2val','item2description'); $form->addTextBox('text_test','text_value_test','description of the text box'); $form->addCheckBox('cb_name','cb_value','cb_description'); $form->addRadioButton('rb_name','rb_value','rb_description'); $form->addTextArea('ta_name','ta_value','description of the textarea'); echo $form->getTableOfElements_1(); echo $form->getTableOfElements_2(); /**/</span> <span style="color: rgb(0,0,0); font-weight: bold">?></span> </div>
试试其它关键字
表单生成器
同语言下
.
用net匹配并替换iOS标准的emoji表情符号
.
处理带Emoji表情的的字符串
.
获取微信昵称时 过滤特殊字符
.
通过判断上传文件的头字符来判断文件的类型
.
模拟百度URL加密解密算法
.
以太坊检查地址是否合法
.
实现crontab解析类
.
获取每个月的开始和结束时间
.
图片上传工具类
.
APP手机应用信息采集
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3