summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-20 13:47:59 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-20 13:47:59 -0400
commit6f6aed821387075de8c22da55c5620c04cda0dc1 (patch)
tree8716a289525c274c03c7c1a2910fbdf465f343aa /lib
parent8e81943c2c6588be7e4c695172e757243b7a0d74 (diff)
better forms for new theme
darcs-hash:20080520174759-84dde-7206aeef3246b2304d463b121a6b17c7f3f2f6d5.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 24f0e5dd8..83fbb4a5b 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -194,6 +194,7 @@ function common_menu_item($url, $text, $title=NULL) {
}
function common_input($id, $label, $value=NULL) {
+ common_element_start('p');
common_element('label', array('for' => $id), $label);
$attrs = array('name' => $id,
'type' => 'text',
@@ -202,14 +203,26 @@ function common_input($id, $label, $value=NULL) {
$attrs['value'] = htmlspecialchars($value);
}
common_element('input', $attrs);
+ comon_element_end('p');
}
function common_password($id, $label) {
+ common_element_start('p');
common_element('label', array('for' => $id), $label);
$attrs = array('name' => $id,
'type' => 'password',
'id' => $id);
common_element('input', $attrs);
+ comon_element_end('p');
+}
+
+function common_submit($id, $label) {
+ common_element_start('p');
+ common_element('input', array('type' => 'submit',
+ 'id' => $id,
+ 'name' => $id,
+ 'value' => $label));
+ comon_element_end('p');
}
# salted, hashed passwords are stored in the DB