Skip to content

Commit

Permalink
Just like the previous batch in r4648, this time for the admin formco…
Browse files Browse the repository at this point in the history
…ntrol templates.

git-svn-id: https://svn.habariproject.org/habari/trunk/htdocs/system@4649 653ae4dd-d31e-0410-96ef-6bf7bf53c507
  • Loading branch information
chrismeller committed Dec 3, 2010
1 parent b674e7a commit 17672f7
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/formcontrols/admincontrol_buttons.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div class="container buttons">
<?php echo $contents; ?>
</div>
1 change: 1 addition & 0 deletions admin/formcontrols/admincontrol_submit.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div class="container transparent <?php echo ($class) ? $class : ''?>" <?php echo ($id) ? ' id="' . $id . '"' : ''?>><input type="submit" name="<?php echo $field; ?>" class="button" value="<?php echo Utils::htmlspecialchars($caption); ?>" <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/admincontrol_text.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

<div class="container">
<p>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/admincontrol_textarea.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div class="container">
<p>
<label for="<?php echo $id; ?>" class="incontent textarea"><?php echo $caption; ?></label>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_button.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>><input type="button" <?php if (isset($disabled) && $disabled) { ?>disabled <?php } if ( isset( $tabindex ) ) { ?> tabindex="<?php echo $tabindex; ?>"<?php } ?> name="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars($caption); ?>"
<?php if (isset($onclick) && $onclick != ''): ?>
<script type="text/javascript">function onclick_<?php echo Utils::slugify($id, '_') ?>() {
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_checkbox.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<label for="<?php echo $field; ?>"><?php echo $this->caption; ?></label>
<input type="checkbox" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="1" <?php echo $value ? 'checked' : ''; ?>>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_checkboxes.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<ul>
<?php foreach($options as $key => $text) : ?>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_fieldset.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<fieldset<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<legend><?php echo $caption; ?></legend>
<?php echo $contents; ?>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_file.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<label for="<?php echo $field; ?>"><?php echo $this->caption; ?></label>
<input type="file" name="<?php echo $field; ?>" >
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_form.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<form
id="<?php echo $id; ?>"
method="post"
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_password.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<label for="<?php echo $field; ?>"><?php echo $this->caption; ?></label><input type="password" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars($outvalue); ?>">
<?php if ($message != '') : ?>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_radio.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<?php foreach($options as $key => $text) : ?>
<input type="radio" name="<?php echo $field; ?>" id="<?php echo Utils::slugify($key, '_'); ?>" value="<?php echo $key; ?>"<?php echo ( ( $value == $key ) ? ' checked' : '' ); ?>><label for="<?php echo Utils::slugify($key); ?>"><?php echo Utils::htmlspecialchars($text); ?></label>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_select.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<label for="<?php echo $field; ?>"><?php echo $this->caption; ?></label>
<select id="<?php echo $field; ?>" name="<?php echo $field . ( $multiple ? '[]' : '' ); ?>"<?php echo ( $multiple ? ' multiple="multiple" size="' . intval($size) . '"' : '' ) ?>>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_silos.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div class="container pagesplitter">
<ul id="mediatabs" class="tabs">
<?php foreach($silos as $ct => $silodir): ?><li><a href="#silo_<?php echo $ct; ?>"<?php if ($silodir->icon != NULL): ?> style="background-image: url(<?php echo $silodir->icon; ?>)"<?php endif; ?>><?php echo $silodir->path; ?></a></li><?php endforeach; ?>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_submit.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>><input type="submit"<?php if (isset($disabled) && $disabled) { ?>disabled <?php } if ( isset( $tabindex ) ) { ?> tabindex="<?php echo $tabindex; ?>"<?php } ?> name="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars($caption); ?>">
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_tabs.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div class="container pagesplitter" id="<?php echo $id; ?>">
<ul class="tabcontrol tabs">
<?php $ct =0;foreach($controls as $title => $tabcontent):$ct++;?><li><a href="#tab_<?php echo $id; ?>_<?php echo $ct; ?>"><?php echo $title; ?></a></li><?php endforeach; ?>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_text.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo isset( $class ) ? " class=\"$class\"" : ''; ?><?php echo isset( $id ) ? " id=\"$id\"" : ''; ?>>
<label<?php if ( isset( $label_title ) ) { ?> title="<?php echo $label_title; ?>"<?php } else { echo ( isset( $title ) ? " title=\"$title\"" : '' ); } ?> for="<?php echo $field; ?>"><?php echo $this->caption; ?></label>
<input<?php if ( isset( $control_title ) ) { ?> title="<?php echo $control_title; ?>"<?php } else { echo ( isset( $title ) ? " title=\"$title\"" : '' ); } if ( isset( $tabindex ) ) { ?> tabindex="<?php echo $tabindex; ?>"<?php } if ( isset( $size ) ) { ?> size="<?php echo $size; ?>"<?php } ?> type="text" id="<?php echo $field; ?>" name="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars( $value ); ?>">
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_textarea.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo( isset( $id ) ? " id=\"$id\"" : '' ); ?>>
<label<?php if ( isset( $label_title ) ) { ?> title="<?php echo $label_title; ?>"<?php $label_title = ''; } else { echo ( isset( $title ) ? " title=\"$title\"" : '' ); } ?> for="<?php echo $field; ?>">
<?php echo $this->caption; ?></label>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_textmulti.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_tree.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<ol class="tree">
<?php
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/formcontrol_wrapper.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div id="<?php echo $id; ?>" class="<?php echo $class; ?>">
<?php echo $contents; ?>
</div>
1 change: 1 addition & 0 deletions admin/formcontrols/optionscontrol_checkbox.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<span class="pct25"><label for="<?php echo $field; ?>"><?php echo $this->caption; ?></label></span>
<span class="pct5"><input type="checkbox" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="1" <?php echo $value ? 'checked' : ''; ?> <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>></span>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/optionscontrol_password.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<span class="pct25"><label for="<?php echo $field; ?>"><?php echo $caption; ?></label></span>
<span class="pct25"><input type="password" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars( $value ); ?>" <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?> autocomplete="off"></span>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/optionscontrol_select.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<span class="pct25"><label for="<?php echo $field; ?>"><?php echo $this->caption; ?></label></span>
<span class="pct25"><select name="<?php echo $field . ( $multiple ? '[]' : '' ); ?>" id="<?php echo $field; ?>" <?php echo ( $multiple ? 'multiple="multiple" size="' . intval($size) . '"' : '' ) ?> <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/optionscontrol_submit.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?> <?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<input type="submit" name="<?php echo $field; ?>" class="button" value="<?php echo Utils::htmlspecialchars($caption); ?>" <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>>
<?php if ($message != '') : ?>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/optionscontrol_text.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<span class="pct25"><label for="<?php echo $field; ?>"><?php echo $caption; ?></label></span>
<span class="pct25"><input type="<?php echo (isset($this->type)) ? $type : 'text'?>" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars( $value ); ?>" <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>></span>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/optionscontrol_textarea.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<span class="pct25"><label for="<?php echo $field; ?>"><?php echo $caption; ?></label></span>
<span class="pct50"><textarea name="<?php echo $field; ?>" id="<?php echo $field; ?>" class="resizable"<?php
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/tabcontrol_checkbox.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div class="container<?php echo ($class) ? ' ' . $class : ''?>">
<p class="pct25"><label for="<?php echo $id; ?>"><?php echo $this->caption; ?></label></p>
<p class="pct75">
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/tabcontrol_select.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<div class="container<?php echo ($class) ? ' ' . $class : ''?>">
<p class="pct25"><label for="<?php echo $id; ?>"><?php echo $this->caption; ?></label></p>
<p class="pct75">
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/tabcontrol_tag.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

<li class="<?php echo ($class) ? ' ' . $class : ''?>"><?php echo $this->caption; ?></li>
1 change: 1 addition & 0 deletions admin/formcontrols/tabcontrol_text.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

<div class="container<?php echo ($class) ? ' ' . $class : ''?>">
<p class="pct25"><label for="<?php echo $id; ?>"><?php echo $this->caption; ?></label></p>
Expand Down
1 change: 1 addition & 0 deletions admin/formcontrols/tabcontrol_textarea.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>

<div class="container<?php echo ($class) ? ' ' . $class : ''?>">
<p class="pct25"><label for="<?php echo $id; ?>"><?php echo $this->caption; ?></label></p>
Expand Down

0 comments on commit 17672f7

Please sign in to comment.