<div class="form_box">

<?php 
if (isset($successMessage) && $successMessage != '') {
    ?>

	<p><?php 
    echo $successMessage;
    ?>
</p>

<?php 
} else {
    ?>

	<div class="title">Send Again</div>

<?php 
    echo print_form('open', 'POST', '', 'edit_form');
    $email = array('type' => 'text', 'name' => 'email', 'id' => 'email', 'value' => $oldValues['email'], 'placeholder' => 'Email Address', 'label' => '', 'labelFor' => '', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['email']) ? $errors['email'] : '');
    echo print_field($email);
    $submit = array('name' => 'send_again', 'value' => 'Send Again');
    echo print_submit_buttons(array($submit));
    echo print_form('close');
}
?>
</div>
Ejemplo n.º 2
0
    if (!$row) {
        die("no record of serial number '{$serno}' in database");
    }
} else {
    $row = array();
}
echo "<input type=hidden name=serno value=0>\n";
begin_table(5);
// date date
print_field("date", array('date' => date("Y-m-d")));
// batch char(32)
print_field("batch", $row, 32);
// type enum('IO','CLP','DSP','INPUT','ALT-INPUT','DISPLAY')
print_enum("type", $row, $type_vals, 0);
// rev tinyint(3) unsigned zerofill
print_field("rev", $row, 3, 'rev_filter');
// sdram[0-3] enum('32M','64M','128M','256M')
print_enum_multi("sdram", $row, $sdram_vals, 4, array(2));
// flash[0-3] enum('4M','8M','16M','32M','64M')
print_enum_multi("flash", $row, $flash_vals, 4, array(2));
// zbt[0-f] enum('512K','1M','2M','4M')
print_enum_multi("zbt", $row, $zbt_vals, 16, array(2, 2));
// xlxtyp[0-3] enum('XCV300E','XCV400E','XCV600E')
print_enum_multi("xlxtyp", $row, $xlxtyp_vals, 4, array(1), 1);
// xlxspd[0-3] enum('6','7','8')
print_enum_multi("xlxspd", $row, $xlxspd_vals, 4, array(1), 1);
// xlxtmp[0-3] enum('COM','IND')
print_enum_multi("xlxtmp", $row, $xlxtmp_vals, 4, array(1), 1);
// xlxgrd[0-3] enum('NORMAL','ENGSAMP')
print_enum_multi("xlxgrd", $row, $xlxgrd_vals, 4, array(1), 1);
// cputyp enum('MPC8260')
$relativePath = array('type' => 'text', 'name' => 'relative_path', 'id' => 'relative_path', 'value' => $oldValues['relative_path'], 'placeholder' => 'Path', 'label' => 'Path', 'labelFor' => 'relative_path', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['relative_path']) ? $errors['relative_path'] : '');
echo print_field($relativePath);
$lang = array('type' => 'select', 'name' => 'lang', 'id' => 'lang', 'options' => $this->config->item('langs', 'factotum'), 'value' => isset($oldValues['lang']) ? $oldValues['lang'] : $this->config->item('default_lang', 'factotum'), 'label' => 'Language', 'labelFor' => 'lang', 'mandatory' => true, 'showError' => true, 'error' => isset($errors['lang']) ? $errors['lang'] : '');
echo print_field($lang);
if (count($fields) > 0) {
    foreach ($fields as $field) {
        echo print_field($field);
    }
}
?>
	</section>
	<section id="section-2">
<?php 
if (count($categories) > 0) {
    $categoriesField = array('type' => 'multicheckbox', 'name' => 'categories', 'id' => 'categories', 'value' => $oldValues['categories'], 'options' => $categories, 'label' => 'Content Categories', 'labelFor' => 'categories', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['categories']) ? $errors['categories'] : '');
    echo print_field($categoriesField);
} else {
    ?>
	<h4>No categories</h4>
<?php 
}
?>
	</section>

	<section id="section-3">
		pages and other stuff
	</section>
</div>
<?php 
echo print_submit_buttons($submits);
echo print_form('close');
Ejemplo n.º 4
0
?>
</textarea>
    </div>

    <div class="form-group" align="center">
      <label for="assessment">ASSESSMENT:</label>
      <textarea class="form-control" rows="5" name="assessment"><?php 
print_field('assessment');
?>
</textarea>
    </div>

    <div class="form-group" align="center">
      <label for="plan">PLAN:</label>
      <textarea class="form-control" rows="5" name="plan"><?php 
print_field('plan');
?>
</textarea>
    </div>

    <?php 
if (get_user_role($_SESSION['id']) == "MEDSTUDENT") {
    // show student signature
    ?>
      <div class="form-group" align="center">
        <label for="primary">Primary Student Doctor Signature:</label>
        <input type="text" class="form-control" name="student_signature" style="width: 500px;">
      </div>
      <div align="center">
        Date:
        <input type="text" name="primarydate" value="<?php 
<?php

if (isset($successMessage) && $successMessage != '') {
    echo '<p>' . $successMessage . '</p>';
} else {
    echo print_form('open', 'POST', '', 'edit_form');
    $oldPassword = array('class' => 'old_password', 'type' => 'password', 'name' => 'old_password', 'id' => 'old_password', 'value' => '', 'placeholder' => 'Old Password', 'label' => 'Old Password', 'labelFor' => 'old_password', 'labelClass' => 'old_password', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['old_password']) ? $errors['old_password'] : '');
    echo print_field($oldPassword);
    $newPassword = array('class' => 'new_password', 'type' => 'password', 'name' => 'new_password', 'id' => 'new_password', 'value' => '', 'placeholder' => 'New Password', 'label' => 'New Password', 'labelFor' => 'new_password', 'labelClass' => 'new_password', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['new_password']) ? $errors['new_password'] : '');
    echo print_field($newPassword);
    $confirmNewPassword = array('class' => 'confirm_new_password', 'type' => 'password', 'name' => 'confirm_new_password', 'id' => 'confirm_new_password', 'value' => '', 'placeholder' => 'Confirm New Password', 'label' => 'Confirm New Password', 'labelFor' => 'confirm_new_password', 'labelClass' => 'confirm_new_password', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['confirm_new_password']) ? $errors['confirm_new_password'] : '');
    echo print_field($confirmNewPassword);
    $submit = array('name' => 'change_password', 'value' => 'Change Password');
    echo print_submit_buttons(array($submit));
    echo print_form('close');
}
<?php

echo print_form('open', 'POST', '', 'edit_form');
$contentType = array('type' => 'text', 'name' => 'content_type', 'id' => 'content_type', 'value' => $oldValues['content_type'], 'placeholder' => 'Content Type', 'label' => '', 'labelFor' => '', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['content_type']) ? $errors['content_type'] : '');
echo print_field($contentType);
echo print_submit_buttons(array($submit));
echo print_form('close');
Ejemplo n.º 7
0
if ($serno == 0) {
    die("serial number not specified!");
}
if (isset($logno)) {
    die("log number must not be specified when adding!");
}
?>
<form action=donewlog.php method=POST>
<p></p>
<?php 
echo "<input type=hidden name=serno value={$serno}>\n";
begin_table(3);
// date date
print_field("date", array('date' => date("Y-m-d")));
// who char(20)
print_field("who", "");
// details text
print_field_multiline("details", array(), 60, 10, 'text_filter');
end_table();
?>
<p></p>
<table width="100%">
<tr>
  <td align=center>
    <input type=submit value="Add Log Entry">
  </td>
  <td align=center>
    <input type=reset value="Reset Form Contents">
  </td>
</tr>
</table>
<li class="clearfix">

	<div class="col">
<?php 
$optionValue = array('type' => 'text', 'name' => 'options[values][]', 'value' => '', 'label' => 'Option Value', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => FALSE, 'error' => '');
echo print_field($optionValue);
?>
		</div>

		<div class="col">
<?php 
$optionLabel = array('type' => 'text', 'name' => 'options[labels][]', 'value' => '', 'label' => 'Option Label', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => FALSE, 'error' => '');
echo print_field($optionLabel);
?>
	</div>

</li>
</div>

<h2>Contact us</h2>
<div class="clearfix">

	<div class="contact_column">
<?php 
echo print_form('open', 'POST', '', 'contact_form');
$email = array('type' => 'text', 'name' => 'email', 'id' => 'email', 'value' => $oldValues['email'], 'placeholder' => 'Email', 'label' => '', 'labelFor' => '', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => FALSE, 'error' => isset($errors['email']) ? $errors['email'] : '');
echo print_field($email);
$firstname = array('type' => 'text', 'name' => 'firstname', 'id' => 'firstname', 'value' => $oldValues['firstname'], 'placeholder' => 'Firstname', 'label' => '', 'labelFor' => '', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => FALSE, 'error' => isset($errors['firstname']) ? $errors['firstname'] : '');
echo print_field($firstname);
$lastname = array('type' => 'text', 'name' => 'lastname', 'id' => 'lastname', 'value' => $oldValues['lastname'], 'placeholder' => 'Lastname', 'label' => '', 'labelFor' => '', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => FALSE, 'error' => isset($errors['lastname']) ? $errors['lastname'] : '');
echo print_field($lastname);
$comment = array('type' => 'textarea', 'name' => 'comment', 'id' => 'comment', 'value' => $oldValues['comment'], 'placeholder' => 'Comment', 'label' => '', 'labelFor' => '', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => FALSE, 'error' => isset($errors['comment']) ? $errors['comment'] : '');
echo print_field($comment);
$submit = array('name' => 'send', 'value' => 'Send');
echo print_submit_buttons(array($submit));
echo print_form('close');
?>
	</div>

	<div class="contact_column">
		<h3>Chroma Agency</h3>
		<p>
			31a Clerkenwell Close<br>
			London EC1R 0AT<br>
			Phone: <strong> +44 (0)20 7608 2748</strong><br>
			Email: <a href="mailto:info@chromaagency.com">info@chromaagency.com</a>
		</p>
	</div>
<?php 
$maxImageSize = array('type' => 'text', 'name' => 'max_image_size', 'id' => 'max_image_size', 'value' => $oldValues['max_image_size'], 'placeholder' => 'Max Image Size', 'label' => 'Max Image Size', 'labelFor' => 'max_image_size', 'labelClass' => '', 'hint' => 'WxH (i.e. 1024x768)', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['max_image_size']) ? $errors['max_image_size'] : '');
echo print_field($maxImageSize);
$thumbSize = array('type' => 'text', 'name' => 'thumb_size', 'id' => 'thumb_size', 'value' => $oldValues['thumb_size'], 'placeholder' => 'Thumb Size', 'label' => 'Thumb Size', 'labelFor' => 'thumb_size', 'labelClass' => '', 'hint' => 'WxH (i.e. 320x200)', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['thumb_size']) ? $errors['thumb_size'] : '');
echo print_field($thumbSize);
$imageOperation = array('type' => 'select', 'name' => 'image_operation', 'id' => 'image_operation', 'value' => $oldValues['image_operation'], 'options' => $imageOperations, 'label' => 'Image Operation', 'labelFor' => 'image_operation', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['image_operation']) ? $errors['image_operation'] : '');
echo print_field($imageOperation);
$imageBW = array('type' => 'checkbox', 'name' => 'image_bw', 'id' => 'image_bw', 'options' => array(TRUE => 'Image B/W'), 'checked' => $oldValues['image_bw'] ? TRUE : FALSE, 'label' => 'Image B/W', 'labelFor' => 'image_bw', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['image_bw']) ? $errors['image_bw'] : '');
echo print_field($imageBW);
?>
</div>

<div class="linked_content_features<?php 
echo in_array($oldValues['type'], array('linked_content', 'multiple_linked_content')) ? ' show' : '';
?>
">
<?php 
$contentTypeOptions = array();
foreach ($contentTypes as $cType) {
    if ($cType['id'] != $idContentType) {
        $contentTypeOptions[$cType['id']] = $cType['content_type'];
    }
}
$linkedContent = array('type' => 'select', 'name' => 'linked_id_content_type', 'id' => 'linked_id_content_type', 'value' => $oldValues['linked_id_content_type'], 'options' => $contentTypeOptions, 'label' => 'Linked Content', 'labelFor' => 'linked_id_content_type', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['linked_id_content_type']) ? $errors['linked_id_content_type'] : '');
echo print_field($linkedContent);
?>
</div>

<?php 
echo print_submit_buttons(array($submit));
echo print_form('close');
Ejemplo n.º 11
0
echo '<form action="edit.php" method="POST" enctype="multipart/form-data">';
echo '<input type="hidden" name="id" value="' . htmlentities($id) . '">';
#-- {id}
print_field($data, "id", 32);
#-- {version}
print_field($data, "version", 3, "", "");
echo ' <input type="submit" name="refresh" value="refr" title="refresh view, show given version"> ';
echo ' <a href="list_vers.php?id=' . urlencode($id) . '">...</a> ';
echo '<input type="submit" name="delete" value="del" title="delete current page version"><br>' . "\n";
#-- {flags}
print_flags($data);
#-- {author} and {hits}, {created}, {lastmodified}
print_field($data, "author", 26);
print_field($data, "hits", 4);
print_field($data, "created", 11);
print_field($data, "lastmodified", 11, "", "");
echo '<input type="checkbox" name="update[lastmodified]" value="1" title=":= time()"><br>';
#-- [save]
echo "\n<small><br>\n" . '<input type="submit" name="save" value="update database entry">' . "\n<br></small><br>\n";
#-- {content}
if ($data["flags"] & EWIKI_DB_F_BINARY && !$_REQUEST["show_content"]) {
    echo '<label for="show_content">content</label><br>' . '<input id="show_content" type="submit" name="show_content" value="show" title="contains binary data, beware!"><br><br>';
} else {
    print_textfield($data["content"], "content", 16);
}
#-- {meta}
print_textfield(flatten_meta($data["meta"]), "meta", 5);
#-- {refs}
$inj = ' &nbsp;<input type="checkbox" checked name="update[refs]" value="1" id="update_refs">' . '<label for="update_refs"> update automatically</label><br>';
print_textfield(ltrim($data["refs"]), "refs", 4, $inj);
// done
<?php

echo print_form('open', 'POST', '', 'edit_form');
$categoryContentType = array('type' => 'hidden', 'name' => 'id_content_type', 'id' => 'id_content_type', 'value' => $oldValues['id_content_type'], 'label' => '', 'labelFor' => '', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['id_content_type']) ? $errors['id_content_type'] : '');
echo print_field($categoryContentType);
$categoryName = array('type' => 'text', 'name' => 'category_name', 'id' => 'category_name', 'value' => $oldValues['category_name'], 'placeholder' => 'Category Name', 'label' => 'Category Name', 'labelFor' => 'category_name', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['category_name']) ? $errors['category_name'] : '');
echo print_field($categoryName);
$categoryLabel = array('type' => 'text', 'name' => 'category_label', 'id' => 'category_label', 'value' => $oldValues['category_label'], 'placeholder' => 'Category Label', 'label' => 'Category Label', 'labelFor' => 'category_label', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['category_label']) ? $errors['category_label'] : '');
echo print_field($categoryLabel);
echo print_submit_buttons(array($submit));
echo print_form('close');
print_field_checked('heard_about_clinic', 'doctor');
?>
> Doctor
        </label>
        <label class="radio-inline">
            <input type="radio" name="hear-about" id="other" value="other" onclick="enableOtherField()"
                   required <?php 
print_field_checked('heard_about_clinic', 'other');
?>
> Other
        </label>

        <input type="text" class="form-control" id="other-explanation" name="other-explanation"
               placeholder="If other, explain"
               style="width: 500px;" disabled <?php 
print_field('heard_about_clinic');
?>
>

    </div>

    <!-- Submit button -->
    <br>

    <div style="text-align:center">
        <button type="submit" class="btn btn-info">Submit</button>
    </div>

</form> <!-- End Form -->

<br>
<?php

echo print_form('open', 'POST', '', 'edit_form');
$role = array('type' => 'text', 'name' => 'role', 'id' => 'role', 'value' => $oldValues['role'], 'placeholder' => 'Role Name', 'label' => 'Role Name', 'labelFor' => 'role', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['role']) ? $errors['role'] : '');
echo print_field($role);
$backendAccess = array('type' => 'radio', 'name' => 'backend_access', 'id' => 'backend_access', 'value' => $oldValues['backend_access'], 'options' => array('true' => 'Yes', 'false' => 'No'), 'label' => 'Backend Access', 'labelFor' => 'backend_access', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['backend_access']) ? $errors['backend_access'] : '');
echo print_field($backendAccess);
$manageContentTypes = array('type' => 'radio', 'name' => 'manage_content_types', 'id' => 'manage_content_types', 'value' => $oldValues['manage_content_types'], 'options' => array('true' => 'Yes', 'false' => 'No'), 'label' => 'Manage Content Types', 'labelFor' => 'manage_content_types', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['manage_content_types']) ? $errors['manage_content_types'] : '');
echo print_field($manageContentTypes);
$manageContentCategories = array('type' => 'radio', 'name' => 'manage_content_categories', 'id' => 'manage_content_categories', 'value' => $oldValues['manage_content_categories'], 'options' => array('true' => 'Yes', 'false' => 'No'), 'label' => 'Manage Content Categories', 'labelFor' => 'manage_content_categories', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['manage_content_categories']) ? $errors['manage_content_categories'] : '');
echo print_field($manageContentCategories);
$manageUsers = array('type' => 'radio', 'name' => 'manage_users', 'id' => 'manage_users', 'value' => $oldValues['manage_users'], 'options' => array('true' => 'Yes', 'false' => 'No'), 'label' => 'Manage Users', 'labelFor' => 'manage_users', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['manage_users']) ? $errors['manage_users'] : '');
echo print_field($manageUsers);
if (count($oldValues['capabilities']) > 0) {
    foreach ($oldValues['capabilities'] as $idContentType => $capabilities) {
        echo '<div class="content_capability clearfix">';
        echo '<h3>' . $contentTypesList[$idContentType] . '</h3>';
        $configure = array('type' => 'checkbox', 'name' => 'capabilities[' . $idContentType . '][configure]', 'id' => $idContentType . '_configure', 'options' => array(TRUE => 'configuration'), 'checked' => $oldValues['capabilities'][$idContentType]['configure'] ? TRUE : FALSE, 'label' => 'Configuration', 'labelFor' => $idContentType . '_configure', 'labelClass' => '', 'mandatory' => FALSE);
        echo print_field($configure);
        $edit = array('type' => 'checkbox', 'name' => 'capabilities[' . $idContentType . '][edit]', 'id' => $idContentType . '_edit', 'options' => array(TRUE => 'edit'), 'checked' => $oldValues['capabilities'][$idContentType]['edit'] ? TRUE : FALSE, 'label' => 'Edit', 'labelFor' => $idContentType . '_edit', 'labelClass' => '', 'mandatory' => FALSE);
        echo print_field($edit);
        $publish = array('type' => 'checkbox', 'name' => 'capabilities[' . $idContentType . '][publish]', 'id' => $idContentType . '_publish', 'options' => array(TRUE => 'publish'), 'checked' => $oldValues['capabilities'][$idContentType]['publish'] ? TRUE : FALSE, 'label' => 'Publish', 'labelFor' => $idContentType . '_publish', 'labelClass' => '', 'mandatory' => FALSE);
        echo print_field($publish);
        echo '</div>';
    }
}
echo print_submit_buttons(array($submit));
echo print_form('close');
Ejemplo n.º 15
0
?>
<p>
<form action=doedlog.php method=POST>
<?php 
echo "<input type=hidden name=serno value={$serno}>\n";
echo "<input type=hidden name=logno value={$logno}>\n";
$r = mysql_query("select * from log where serno={$serno} and logno={$logno}");
$row = mysql_fetch_array($r);
if (!$row) {
    die("no record of log entry with serial number '{$serno}' " . "and log number '{$logno}' in database");
}
begin_table(3);
// date date
print_field("date", $row);
// who char(20)
print_field("who", $row);
// details text
print_field_multiline("details", $row, 60, 10, 'text_filter');
end_table();
echo "<p>\n";
echo "<center><b>";
echo "<font color=#ff0000>WARNING: NO UNDO ON DELETE!</font>";
echo "<br></br>\n";
echo "<tt>[ <a href=\"dodellog.php?serno={$serno}&logno={$logno}\">delete</a> ]</tt>";
echo "</b></center>\n";
echo "</p>\n";
?>
<p>
<table align=center width="100%">
<tr>
  <td align=center>
Ejemplo n.º 16
0
if (!$row) {
    die("no record of serial number '{$serno}' in database");
}
begin_table(5);
// ethaddr char(17)
print_field("ethaddr", $row, 17);
// date date
print_field("date", $row);
// batch char(32)
print_field("batch", $row, 32);
// type enum('IO','CLP','DSP','INPUT','ALT-INPUT','DISPLAY')
print_enum("type", $row, $type_vals);
// rev tinyint(3) unsigned zerofill
print_field("rev", $row, 3, 'rev_filter');
// location char(64)
print_field("location", $row, 64);
// comments text
print_field_multiline("comments", $row, 60, 10, 'text_filter');
// sdram[0-3] enum('32M','64M','128M','256M')
print_enum_multi("sdram", $row, $sdram_vals, 4, array());
// flash[0-3] enum('4M','8M','16M','32M','64M')
print_enum_multi("flash", $row, $flash_vals, 4, array());
// zbt[0-f] enum('512K','1M','2M','4M')
print_enum_multi("zbt", $row, $zbt_vals, 16, array());
// xlxtyp[0-3] enum('XCV300E','XCV400E','XCV600E')
print_enum_multi("xlxtyp", $row, $xlxtyp_vals, 4, array(), 1);
// xlxspd[0-3] enum('6','7','8')
print_enum_multi("xlxspd", $row, $xlxspd_vals, 4, array(), 1);
// xlxtmp[0-3] enum('COM','IND')
print_enum_multi("xlxtmp", $row, $xlxtmp_vals, 4, array(), 1);
// xlxgrd[0-3] enum('NORMAL','ENGSAMP')
<?php

echo print_form('open', 'POST', '', 'edit_form');
if ($useUsername) {
    $username = array('type' => 'text', 'name' => 'username', 'id' => 'username', 'value' => $oldValues['username'], 'placeholder' => 'Username', 'label' => 'Username', 'labelFor' => 'username', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['username']) ? $errors['username'] : '');
    echo print_field($username);
}
$role = array('type' => 'select', 'name' => 'role', 'id' => 'role', 'value' => $oldValues['role'], 'options' => $roles, 'label' => 'Role', 'labelFor' => 'role', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['role']) ? $errors['role'] : '');
echo print_field($role);
$email = array('type' => 'text', 'name' => 'email', 'id' => 'email', 'value' => $oldValues['email'], 'placeholder' => 'Email', 'label' => 'Email', 'labelFor' => 'email', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['email']) ? $errors['email'] : '');
echo print_field($email);
$password = array('class' => 'password', 'type' => 'password', 'name' => 'password', 'id' => 'password', 'value' => '', 'placeholder' => 'Password', 'label' => 'Password', 'labelFor' => 'password', 'labelClass' => 'password', 'mandatory' => $pwdMandatory, 'showError' => TRUE, 'error' => isset($errors['password']) ? $errors['password'] : '');
echo print_field($password);
$confirmPassword = array('class' => 'confirm_password', 'type' => 'password', 'name' => 'confirm_password', 'id' => 'confirm_password', 'value' => '', 'placeholder' => 'Confirm Password', 'label' => 'Confirm Password', 'labelFor' => 'confirm_password', 'labelClass' => 'confirm_password', 'mandatory' => $pwdMandatory, 'showError' => TRUE, 'error' => isset($errors['confirm_password']) ? $errors['confirm_password'] : '');
echo print_field($confirmPassword);
$firstname = array('type' => 'text', 'name' => 'firstname', 'id' => 'firstname', 'value' => $oldValues['firstname'], 'placeholder' => 'Firstname', 'label' => 'Firstname', 'labelFor' => 'firstname', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['firstname']) ? $errors['firstname'] : '');
echo print_field($firstname);
$lastname = array('type' => 'text', 'name' => 'lastname', 'id' => 'lastname', 'value' => $oldValues['lastname'], 'placeholder' => 'Lastname', 'label' => 'Lastname', 'labelFor' => 'lastname', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['lastname']) ? $errors['lastname'] : '');
echo print_field($lastname);
$dob = array('type' => 'date', 'name' => 'dob', 'id' => 'dob', 'value' => $oldValues['dob'], 'placeholder' => 'Date of Birth', 'label' => 'Date of Birth', 'labelFor' => 'dob', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['dob']) ? $errors['dob'] : '');
echo print_field($dob);
echo print_submit_buttons(array($submit));
echo print_form('close');
<?php

if (isset($successMessage) && $successMessage != '') {
    echo '<p>' . $successMessage . '</p>';
} else {
    echo print_form('open', 'POST', '', 'edit_form');
    $password = array('class' => 'password', 'type' => 'password', 'name' => 'password', 'id' => 'password', 'value' => '', 'placeholder' => 'Password', 'label' => 'Password', 'labelFor' => 'password', 'labelClass' => 'password', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['password']) ? $errors['password'] : '');
    echo print_field($password);
    $submit = array('name' => 'delete', 'value' => 'Delete account');
    echo print_submit_buttons(array($submit));
    echo print_form('close');
}
        <label class="radio-inline">
            <input type="radio" name="gender-options" id="other" value="other" required <?php 
print_field_checked('gender', 'other');
?>
> Other

        </label>
    </div>
    <br>


    <!-- Daily work performed -->
    <div class="form-group" align="center">
        <label for="today-date">Daily Work Performed:</label>
        <input type="text" class="form-control" name="daily-work" id="daily-work" placeholder="Type of daily work performed" style="width: 500px;" value="<?php 
print_field('daily_work_performed');
?>
 ">
        <br>
    </div>


    <!-- Completed education input -->
    <div class="form-group" align="center">
        <label class="control-label">Completed Education</label>

        <label class="radio-inline">
            <input type="radio" name="education-options" id="none" value="NO EDUCATION" <?php 
print_field_checked('completed_education', 'NO EDUCATION');
?>
> None
<div class="form_box">

<?php 
if (isset($successMessage) && $successMessage != '') {
    ?>

	<p><?php 
    echo $successMessage;
    ?>
</p>

<?php 
} else {
    ?>

	<div class="title">Forgot Password</div>

<?php 
    echo print_form('open', 'POST', '/' . $this->uri->uri_string());
    $login = array('type' => 'text', 'name' => 'login', 'id' => 'login', 'value' => $oldValues['login'], 'placeholder' => $useUsername ? 'Email or login' : 'Email', 'label' => '', 'labelFor' => '', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['login']) ? $errors['login'] : '');
    echo print_field($login);
    $submit = array('name' => 'send_email', 'value' => 'Send Email');
    echo print_submit_buttons(array($submit));
    echo print_form('close');
}
?>
</div>
$remember = array('type' => 'checkbox', 'name' => 'remember', 'id' => 'remember', 'options' => array(TRUE => 'Remember me'), 'checked' => $oldValues['remember'] ? TRUE : FALSE, 'label' => 'Remember me', 'labelFor' => 'remember', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['remember']) ? $errors['remember'] : '');
echo print_field($remember);
if ($showCaptcha) {
    if ($useRecaptcha) {
        if (isset($errors['recaptcha_response_field']) && $errors['recaptcha_response_field'] != '') {
            echo '<div class="captcha_container error">';
        } else {
            echo '<div class="captcha_container">';
        }
        echo $recaptchaHtml;
        echo '</div>';
    } else {
        echo '<div class="title small">Enter the code exactly as it appears:</div>';
        echo '<div class="captcha_container">' . $captchaHtml . '</div>';
        $captcha = array('type' => 'text', 'name' => 'captcha', 'id' => 'captcha', 'value' => '', 'placeholder' => 'Confirmation Code', 'mandatory' => TRUE, 'showError' => FALSE, 'error' => isset($errors['captcha']) ? $errors['captcha'] : '', 'maxlength' => 8);
        echo print_field($captcha);
    }
}
$submit = array('name' => 'login_submit', 'value' => 'Log In');
echo print_submit_buttons(array($submit));
echo print_form('close');
?>

<div class="link_container clearfix">
<?php 
echo anchor('/forgot-password', 'Forgot password');
if ($allowRegistration) {
    echo anchor('/register', 'Register');
}
?>
</div>
Ejemplo n.º 22
0
}
$serno = intval($_REQUEST['serno']);
if (isset($_REQUEST['logno'])) {
    $logno = $_REQUEST['logno'];
    die("log number must not be specified when adding! ({$logno})");
}
?>
<form action=donewlog.php method=POST>
<p></p>
<?php 
echo "<input type=hidden name=serno value={$serno}>\n";
begin_table(3);
// date date
print_field("date", array('date' => date("Y-m-d")));
// who char(20)
print_field("who", array());
// details text
print_field_multiline("details", array(), 60, 10, 'text_filter');
end_table();
?>
<p></p>
<table width="100%">
<tr>
  <td align=center>
    <input type=submit value="Add Log Entry">
  </td>
  <td align=center>
    <input type=reset value="Reset Form Contents">
  </td>
</tr>
</table>
<h1><?php 
echo $page['title'];
?>
</h1>
<?php 
echo $page['text'];
?>

<?php 
echo print_form('open', 'POST', '', 'news_form');
$title = array('type' => 'text', 'name' => 'title', 'id' => 'title', 'value' => $oldValues['title'], 'placeholder' => 'Title', 'label' => 'Title', 'labelFor' => 'title', 'labelClass' => '', 'mandatory' => TRUE, 'showError' => TRUE, 'error' => isset($errors['title']) ? $errors['title'] : '');
echo print_field($title);
$relativePath = array('type' => 'hidden', 'name' => 'relative_path', 'id' => 'relative_path', 'value' => $oldValues['relative_path'], 'mandatory' => TRUE, 'showError' => FALSE, 'error' => isset($errors['relative_path']) ? $errors['relative_path'] : '');
echo print_field($relativePath);
if (count($fields) > 0) {
    foreach ($fields as $field) {
        echo print_field($field);
    }
}
$submitSave = array('name' => 'save_list', 'value' => 'Save');
echo print_submit_buttons(array($submitSave));
echo print_form('close');