- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
$cities_id=array(1,2,3,4,5,6);
$cities_name=array("MSK","SPB","NN","KZ","NOV","UFA");
GHTML::Run(array("html_autoinsert_on"=>0,"html_method"=>"_POST"));
print GHTML::Link("/test.php",null,GHTML::Link("/test.php","style='font-weight:bold;font-size:20px;'")->Html("[Главная]"))->Html("[Главная]");
print " ";
print GHTML::Link("/test.php?act=reg",null,GHTML::Link("/test.php?act=reg","style='font-weight:bold;font-size:20px;'")->Html("[Регистрация]"))->Html("[Регистрация]");
print GHTML::Form("POST","")
->HTML(
GHTML::Input("name","text","Имя пользователя",null,true)->Html(),
"<br>",
GHTML::Input("pass1","password","Пароль")->Html(),
"<br>",
GHTML::Input("pass2","password","Пароль ещё раз")->Html(),
"<br>",
GHTML::Select("city")->Html(
GHTML::Option("")->Html("Выберите город"),
GHTML::Option($cities_id,$_POST['city'])->Html($cities_name)
),
"<br>",
GHTML::CheckBoxList("che_cities[]",$cities_id,null,$_POST['che_cities'])->Html($cities_name),
"<br>",
GHTML::RadioList("r_cities[]",$cities_id,null,$_POST['r_cities'])->Html($cities_name),
"<br>",
GHTML::Textarea("resume",50,9,null,true)->Html("Ненмого о себе"),
"<br>",
GHTML::Input("","submit","Жми!")->Html()
);
//////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////
<a href='/test.php' />[Главная]</a> <a href='/test.php?act=reg' style='font-weight:bold;font-size:20px;' />[Регистрация]</a><form method='POST' action='' /><input type='text' name='name' value='Имя пользователя' /><br><input type='password' name='pass1' value='Пароль' /><br><input type='password' name='pass2' value='Пароль ещё раз' /><br><select name='city' /><option value='' />Выберите город</option><option value='6' />MSK</option><option value='5' />SPB</option><option value='4' />NN</option><option value='3' />KZ</option><option value='2' />NOV</option><option value='1' />UFA</option></select><br><input type='checkbox' name='che_cities[]' value='6' />MSK<br /><input type='checkbox' name='che_cities[]' value='5' />SPB<br /><input type='checkbox' name='che_cities[]' value='4' />NN<br /><input type='checkbox' name='che_cities[]' value='3' />KZ<br /><input type='checkbox' name='che_cities[]' value='2' />NOV<br /><input type='checkbox' name='che_cities[]' value='1' />UFA<br /><br><input type='radio' name='r_cities[]' value='6' />MSK<br /><input type='radio' name='r_cities[]' value='5' />SPB<br /><input type='radio' name='r_cities[]' value='4' />NN<br /><input type='radio' name='r_cities[]' value='3' />KZ<br /><input type='radio' name='r_cities[]' value='2' />NOV<br /><input type='radio' name='r_cities[]' value='1' />UFA<br /><br><textarea name='resume' cols='50' rows='9' />Ненмого о себе</textarea><br><input type='submit' name='' value='Жми!' /></form>
guest 24.01.2010 11:33 # 0
striker 24.01.2010 11:47 # +1
Dreyk 24.01.2010 14:29 # 0
guest 24.01.2010 16:04 # +1
пхп как всегда упорно держит первое место по гк :D
guest 24.01.2010 18:30 # +1
guest 25.01.2010 13:16 # 0
guest 24.01.2010 19:15 # 0
guest 24.01.2010 19:22 # +5
guest 24.01.2010 21:25 # +5
guest 25.01.2010 03:10 # +4
mrbig66 25.01.2010 11:22 # 0
guest 24.01.2010 22:33 # 0
mrbig66 25.01.2010 11:23 # 0
Ужас.
guest 25.01.2010 16:55 # 0
Mitusbka 26.01.2010 22:23 # 0
просто всё задумывалось ради Link() (типа ViewHelper)
а потом понесло =) зато весело
кстати, есть 2 оч. удобные вещи - это Link() ссылки рисует и Кешер полей, сохраняет значения
хотя кешер у меня по другому реализован...
Mitusbka 27.01.2010 10:28 # +0.2
http://pear.php.net/package/HTML_QuickForm/