/** * Render form control * * @param string $control_name * @return string */ function render($control_name) { $value = $this->getValue(); $dimensions = Dimensions::instance()->findAll(); $permission_group_ids = ContactPermissionGroups::getPermissionGroupIdsByContactCSV(logged_user()->getId(), false); $out = ''; foreach ($dimensions as $dim) { /* @var $dim Dimension */ if ($dim->getOptions(1) && isset($dim->getOptions(1)->hidden) && $dim->getOptions(1)->hidden) { continue; } if (!$dim->getDefinesPermissions() || !$dim->deniesAllForContact($permission_group_ids)) { if (array_search($dim->getId(), $value) !== false) { $checked = 1; } else { $checked = 0; } $out .= '<div class="dimension" >'; $out .= label_tag($dim->getName(), null, false, array('style' => 'display:inline;margin:10px;vertical-align:super;')); $out .= checkbox_field($control_name . '[' . $dim->getId() . ']', $checked); $out .= '</div >'; } } $out .= '<input type="hidden" name="' . $control_name . '[0]" value=" ">'; return $out; }
/** * with_successive_milestones helper * * @param array $params * @param Smarty $smarty * @return string */ function smarty_function_with_successive_milestones($params, &$smarty) { static $counter = 1; $name = array_var($params, 'name'); if (empty($name)) { return new InvalidParamError('name', $name, '$name value is required', true); } // if $milestone = array_var($params, 'milestone'); if (!instance_of($milestone, 'Milestone')) { return new InvalidParamError('milestone', $milestone, '$milestone value is expected to be an instance of Milestone class', true); } // if $id = array_var($params, 'id'); if (empty($id)) { $id = 'with_successive_milestones_' . $counter; $counter++; } // if $value = array_var($params, 'value'); $action = array_var($value, 'action', 'dont_move'); $milestones = array_var($value, 'milestones'); if (!is_array($milestones)) { $milestones = array(); } // if $logged_user = $smarty->get_template_vars('logged_user'); $successive_milestones = Milestones::findSuccessiveByMilestone($milestone, STATE_VISIBLE, $logged_user->getVisibility()); if (!is_foreachable($successive_milestones)) { return '<p class="details">' . lang('This milestone does not have any successive milestones') . '</p>'; } // if $result = "<div class=\"with_successive_milestones\">\n<div class=\"options\">\n"; $options = array('dont_move' => lang("Don't change anything"), 'move_all' => lang('Adjust all successive milestone by the same number of days'), 'move_selected' => lang('Adjust only selected successive milestones by the same number of days')); foreach ($options as $k => $v) { $radio = radio_field($name . '[action]', $k == $action, array('value' => $k, 'id' => $id . '_' . $k)); $label = label_tag($v, $id . '_' . $k, false, array('class' => 'inline'), ''); $result .= '<span class="block">' . $radio . ' ' . $label . "</span>\n"; } // if $result .= "</div>\n<div class=\"successive_milestones\">"; foreach ($successive_milestones as $successive_milestone) { $input_attributes = array('name' => $name . '[milestones][]', 'id' => $id . '_milestones_' . $successive_milestone->getId(), 'type' => 'checkbox', 'value' => $successive_milestone->getId(), 'class' => 'auto'); if (in_array($successive_milestone->getId(), $milestones)) { $input_attributes['checked'] = true; } // if $input = open_html_tag('input', $input_attributes, true); $label = label_tag($successive_milestone->getName(), $id . '_milestones_' . $successive_milestone->getId(), false, array('class' => 'inline'), ''); $result .= '<span class="block">' . $input . ' ' . $label . "</span>\n"; } // foreach $result .= "</div>\n</div>\n"; return $result; }
/** * Render form control * * @param string $control_name * @return string */ function render($control_name) { $value = $this->getValue(); $fields = array('street', 'city', 'state', 'zip_code', 'country'); $out = ''; foreach ($fields as $field) { $checked = array_search($field, $value) !== false; $out .= '<div class="checkbox-config-option">'; $out .= label_tag(lang($field)); $out .= checkbox_field($control_name . '[' . $field . ']', $checked); $out .= '</div>'; } $out .= '<div class="clear"></div>'; return $out; }
function render($control_name) { $genid = gen_id(); $object_types = ObjectTypes::getAvailableObjectTypes(); $value = $this->getValue(); $out = ''; foreach ($object_types as $ot) { $checked = array_search($ot->getId(), $value) !== false; $out .= '<div class="checkbox-config-option">'; $out .= label_tag(lang($ot->getName()), $genid . '_' . $control_name . '_' . $ot->getId(), false, array('style' => 'cursor:pointer;'), ''); $out .= checkbox_field($control_name . '[' . $ot->getId() . ']', $checked, array('id' => $genid . '_' . $control_name . '_' . $ot->getId())); $out .= '</div >'; } $out .= '<input type="hidden" name="' . $control_name . '[0]" value=" "><div class="clear"></div>'; return $out; }
function render($control_name) { $genid = gen_id(); $object_types = ObjectTypes::getAvailableObjectTypesWithDimensionObjects(" AND `name` IN ('task', 'project', 'sample')"); $value = $this->getValue(); $out = ''; foreach ($object_types as $ot) { $checked = array_search($ot->getId(), $value) !== false; $out .= '<div style="float:left; margin-right: 15px; min-width: 130px;">'; $out .= label_tag(lang($ot->getName()), $genid . '_' . $control_name . '_' . $ot->getId(), false, array('style' => 'cursor:pointer;'), ''); $out .= checkbox_field($control_name . '[' . $ot->getId() . ']', $checked, array('id' => $genid . '_' . $control_name . '_' . $ot->getId())); $out .= '</div >'; } $out .= '<input type="hidden" name="' . $control_name . '[0]" value=" "><div class="clear"></div>'; return $out; }
function render($control_name) { $genid = gen_id(); $groups = PermissionGroups::findAll(array('conditions' => "`type`='roles' AND `parent_id`>0")); $value = $this->getValue(); $out = ''; foreach ($groups as $group) { /* @var $dim Dimension */ $checked = array_search($group->getId(), $value) !== false; $out .= '<div class="checkbox-config-option">'; $out .= label_tag($group->getName(), $genid . '_' . $control_name . '_' . $group->getId(), false, array('style' => 'cursor:pointer;'), ''); $out .= checkbox_field($control_name . '[' . $group->getId() . ']', $checked, array('id' => $genid . '_' . $control_name . '_' . $group->getId())); $out .= '</div >'; } $out .= '<input type="hidden" name="' . $control_name . '[0]" value=" "><div class="clear"></div>'; return $out; }
/** * Render form control * * @param string $control_name * @return string */ function render($control_name) { $value = $this->getValue(); $dimensions = Dimensions::instance()->findAll(); $permission_group_ids = ContactPermissionGroups::getPermissionGroupIdsByContactCSV(logged_user()->getId(),false); $out = '' ; foreach ($dimensions as $dim) { /* @var $dim Dimension */ if ( $dim->getOptions(1) && isset($dim->getOptions(1)->hidden) && $dim->getOptions(1)->hidden ) { continue ; } if (!$dim->getDefinesPermissions() || !$dim->deniesAllForContact($permission_group_ids)) { if (array_search($dim->getId(), $value) !== false ){ $checked = 1 ; }else{ $checked = 0 ; } $out.='<div class="dimension" >'; $out.=label_tag($dim->getName()); $out.=checkbox_field($control_name.'['.$dim->getId().']',$checked ); $out.='</div >'; } } return $out ; }
} ?> <div> <?php echo label_tag(lang('email address'), 'profileFormEmail', true); ?> <?php echo text_field('user[email]', array_var($user_data, 'email'), array('id' => 'profileFormEmail', 'tabindex' => '2700', 'class' => 'long')); ?> </div> <div> <?php echo label_tag(lang('user title'), 'profileFormTitle'); ?> <?php echo text_field('user[title]', array_var($user_data, 'title'), array('id' => 'profileFormTitle', 'tabindex' => '2800')); ?> </div> <?php if ($cps > 0) { ?> <div id='<?php echo $genid; ?> add_custom_properties_div' style=""> <fieldset> <legend><?php
?> </h2></th> </tr> <tr> <td style="padding: 5px;"></td> <td style="padding: 5px;"> <?php echo select_workspaces("ws_ids", null, $selected, $genid); ?> </td> <td style="padding: 5px;"> <?php echo "<p>" . lang("assign contact to workspace desc") . "</p><br />"; foreach ($projects as $project) { echo '<div id="role_' . $project->getId() . '_' . $genid . '" style="display:none">'; echo label_tag(lang("role"), null, false, array("style" => "display:inline;padding-right:10px")); echo text_field("contact[role_pid_" . $project->getId() . "]", array_var($contact_data, 'role_pid_' . $project->getId()), array('tabindex' => '20')); echo '</div>'; } ?> </td> </table> <?php echo submit_button(lang('update contact')); ?> </div> </div> </form>
if (!isset($_REQUEST['input_format'])) { $_REQUEST['input_format'] = 'guess'; } // Display the form, if raw option isn't set if (!isset($_REQUEST['raw'])) { print "<html>\n"; print "<head><title>EasyRdf Converter</title></head>\n"; print "<body>\n"; print "<h1>EasyRdf Converter</h1>\n"; print "<div style='margin: 10px'>\n"; print form_tag(); print label_tag('data', 'Input Data: ') . '<br />' . text_area_tag('data', '', array('cols' => 80, 'rows' => 10)) . "<br />\n"; print label_tag('uri', 'or Uri: ') . text_field_tag('uri', 'http://www.dajobe.org/foaf.rdf', array('size' => 80)) . "<br />\n"; print label_tag('input_format', 'Input Format: ') . select_tag('input_format', $input_format_options) . "<br />\n"; print label_tag('output_format', 'Output Format: ') . select_tag('output_format', $output_format_options) . "<br />\n"; print label_tag('raw', 'Raw Output: ') . check_box_tag('raw') . "<br />\n"; print reset_tag() . submit_tag(); print form_end_tag(); print "</div>\n"; } if (isset($_REQUEST['uri']) or isset($_REQUEST['data'])) { // Parse the input $graph = new EasyRdf_Graph($_REQUEST['uri']); if (empty($_REQUEST['data'])) { $graph->load($_REQUEST['uri'], $_REQUEST['input_format']); } else { $graph->parse($_REQUEST['data'], $_REQUEST['input_format'], $_REQUEST['uri']); } // Lookup the output format $format = EasyRdf_Format::getFormat($_REQUEST['output_format']); // Serialise to the new output format
<?php tpl_display(get_template_path('form_errors')); ?> <div> <?php echo label_tag(lang('massmailer subject'), 'massmailerFormRecipient', true); ?> <?php echo text_field('massmailer[subject]', array_var($massmailer_data, 'subject'), array('id' => 'massmailerFormRecipient', 'class' => 'title')); ?> </div> <div> <?php echo label_tag(lang('massmailer message'), 'massmailerFormMessage', true); ?> <?php echo textarea_field('massmailer[message]', array_var($massmailer_data, 'message'), array('id' => 'massmailerFormMessage', 'class' => 'editor')); ?> </div> <h2><?php echo lang('massmailer recipients'); ?> </h2> <?php foreach ($grouped_users as $company_name => $company_details) { $company_id = $company_details['details']->getId(); ?>
<div> <?php echo label_tag(lang('password again'), 'adminPasswordA', true); ?> <?php echo password_field('form[admin_password_a]', null, array('id' => 'adminPasswordA', 'class' => 'medium')); ?> </div> <h2><?php echo lang('company'); ?> </h2> <div> <?php echo label_tag(lang('name'), 'companyName', true); ?> <?php echo text_field('form[company_name]', array_var($form_data, 'company_name'), array('id' => 'companyName', 'class' => 'long')); ?> </div> <input type="hidden" name="form[submitted]" value="submitted" /> <?php echo submit_button('submit'); ?> </form>
<form action="<?php echo $folder->getEditUrl(); ?> " method="post"> <?php } // if ?> <?php tpl_display(get_template_path('form_errors')); ?> <div> <?php echo label_tag(lang('name'), 'folderFormName'); ?> <?php echo text_field('folder[name]', array_var($folder_data, 'name'), array('id' => 'folderFormName')); ?> </div> <?php echo submit_button($folder->isNew() ? lang('add folder') : lang('edit folder')); ?> <a href="<?php echo get_url('files'); ?> "><?php echo lang('cancel'); ?>
echo radio_field('load[what]', true, array('value' => 'locale', 'id' => 'loadFormWhatLocale')); ?> <?php echo label_tag(lang('locale'), 'loadFormLocale', false); ?> <?php echo select_locale('load[locale]', array_var($load_data, 'locales1'), array('value' => 'existing', 'id' => 'loadFormLocale')); ?> </div> <div> <?php echo radio_field('load[what]', false, array('value' => 'file', 'id' => 'loadFormWhatFile')); ?> <?php echo label_tag(lang('files'), 'loadFormFile', false); ?> <?php echo select_locale('load[file]', array_var($load_data, 'locales2'), array('id' => 'loadFormFile')); ?> </div> </fieldset> <p><?php echo lang('maximum execution time', $load_data['max_time']) . ' ' . $load_data['max_time'] . ' seconds'; ?> </p> <?php echo submit_button(lang('load')); ?>
"> <?php echo label_tag(lang($page_attachment->getObjectLangName()), 'project[page_attachments][' . $page_attachment->getId() . '][label]', false, array('class' => 'checkbox')); ?> <?php echo $page_attachment->render('project[page_attachments][' . $page_attachment->getId() . '][text]'); ?> <?php echo $page_attachment->renderControl('project[page_attachments][' . $page_attachment->getId() . '][rel_object_id]'); ?> <?php echo text_field('project[page_attachments][' . $page_attachment->getId() . '][order]', $page_attachment->getOrder(), array('class' => 'short pageAttachmentOrder')); ?> <span class="pageAttachmentDeleteBlock"> <?php echo label_tag(lang('delete'), 'project[page_attachments][' . $page_attachment->getId() . '][delete]', false, array('class' => 'checkbox')); ?> <?php echo checkbox_field('project[page_attachments][' . $page_attachment->getId() . '][delete]', false, array('class' => 'checkbox pageAttachmentDelete', 'id' => 'project[page_attachments][' . $page_attachment->getId() . '][delete]')); ?> <input type="hidden" name="<?php echo 'project[page_attachments][' . $page_attachment->getId() . '][rel_object_manager]'; ?> " value="<?php echo $page_attachment->getRelObjectManager(); ?> "/> </span> <div class="clear"></div> </div> <div class="attachmentActions">
<?php } ?> <div class="dataBlock"> <?php echo label_tag(lang('default hourly rates'), $genid . 'billingFormValue', true); ?> <?php echo text_field('billing[default_value]', array_var($billing_data, 'default_value'), array('id' => $genid . 'billingFormValue', 'tabindex' => '3')); ?> </div> <div class="dataBlock"> <?php echo label_tag(lang('description'), $genid . 'billingFormDescription', false); ?> <?php echo textarea_field('billing[description]', array_var($billing_data, 'description'), array('id' => $genid . 'billingFormDescription', 'class' => 'comment', 'tabindex' => '4')); ?> </div> <?php if (!array_var($_REQUEST, 'modal')) { echo submit_button($billing->isNew() ? lang('add billing category') : lang('save changes'), 's', array('tabindex' => '5')); } ?> </div> </form>
?> </b></div> <div> <label><?php echo lang('confirm delete milestone'); ?> </label> <?php echo yes_no_widget('deleteMilestone[really]', 'deleteMilestoneReallyDelete', false, lang('yes'), lang('no')); ?> </div> <div> <?php echo label_tag(lang('password')); ?> <?php echo password_field('deleteMilestone[password]', null, array('id' => 'loginPassword', 'class' => 'medium')); ?> </div> <?php echo submit_button(lang('delete milestone')); ?> <a href="<?php echo get_url('milestone'); ?> "><?php echo lang('cancel'); ?>
{ width: 800px; font-family: monospace; font-size: 0.8em; } </style> </head> <body> <h1>Test EasyRdf_HTTP_Client Get</h1> <?php echo form_tag(); echo text_field_tag('uri', 'http://tomheath.com/id/me', array('size' => 50)); ?> <br /> <?php echo label_tag('accept', 'Accept Header: ') . select_tag('accept', $accept_options); echo submit_tag(); echo form_end_tag(); ?> <?php if (isset($_REQUEST['uri'])) { $client = new EasyRdf_Http_Client($_REQUEST['uri']); $client->setHeaders('Accept', $_REQUEST['accept']); $response = $client->request(); ?> <p class="status"> <b>Status</b>: <?php echo $response->getStatus(); ?>
<td style="text-align: right"><?php echo submit_button(isset($id) ? lang('save changes') : lang('add report'), 's', array('style' => 'margin-top:0px;margin-left:10px', 'tabindex' => '20')); ?> </td> </tr> </table> </div> </div> <div> <?php echo label_tag(lang('name'), $genid . 'reportFormName', true); echo text_field('report[name]', array_var($report_data, 'name'), array('id' => $genid . 'reportFormName', 'tabindex' => '1', 'class' => 'title')); echo label_tag(lang('description'), $genid . 'reportFormDescription', false); echo text_field('report[description]', array_var($report_data, 'description'), array('id' => $genid . 'reportFormDescription', 'tabindex' => '2', 'class' => 'title')); echo label_tag(lang('object type'), $genid . 'reportFormObjectType', true); $selected_option = null; $options = array(); foreach ($object_types as $type) { if ($selected_type == $type[0]) { $selected = 'selected="selected"'; $selected_option = $type[1]; } else { $selected = ''; } $options[] = '<option value="' . $type[0] . '" ' . $selected . '>' . $type[1] . '</option>'; } $strDisabled = count($options) > 1 ? '' : 'disabled'; echo select_box('objectTypeSel', $options, array('id' => 'objectTypeSel', 'onchange' => 'og.reportObjectTypeChanged("' . $genid . '", "", 1, "")', 'style' => 'width:200px;', $strDisabled => '', 'tabindex' => '10')); ?>
?> <div><?php echo lang('about to move'); ?> <?php echo lc(lang('message')); ?> <b><?php echo clean($message->getTitle()); ?> </b></div> <div> <?php echo label_tag(lang('project to move to', clean($message->getTitle())), 'moveMessageFormTargetProjectId', true); ?> <?php echo select_project('move_data[target_project_id]', '', array_var($move_data, 'target_project_id'), array('id' => 'moveMessageFormTargetProjectId')); ?> </div> <?php echo submit_button(lang('move message')); ?> <span id="cancel"><a href="<?php echo $message->getViewUrl(); ?> "><?php echo lang('cancel'); ?>
echo form_tag(); ?> <?php echo label_tag('data', 'Input Data: ') . '<br />' . text_area_tag('data', '', array('cols' => 80, 'rows' => 10)); ?> <br /> <?php echo label_tag('uri', 'or Uri: ') . text_field_tag('uri', 'http://www.dajobe.org/foaf.rdf', array('size' => 80)); ?> <br /> <?php echo label_tag('input_format', 'Input Format: ') . select_tag('input_format', $input_format_options, 'guess'); ?> <br /> <?php echo label_tag('output_format', 'Output Format: ') . select_tag('output_format', $output_format_options, 'turtle'); ?> <br /> <?php echo reset_tag(); ?> <?php echo submit_tag(); ?> <?php echo form_end_tag(); ?> </div> <?php if (isset($_REQUEST['uri']) or isset($_REQUEST['data'])) {
echo lang('delete company logo'); ?> </a></p> <?php } else { ?> <?php echo lang('no current logo'); } // if ?> </fieldset> <div> <?php echo label_tag(lang('new logo'), 'avatarFormAvatar', true); ?> <?php echo file_field('new_logo', null, array('id' => 'avatarFormAvatar')); if ($company->hasLogo()) { ?> <p class="desc"><?php echo lang('new logo notice'); ?> </p> <?php } // if ?> </div>
<tr> <td style="padding-right: 10px; width:140px;vertical-align:bottom"> <?php echo label_tag(lang('date')) ?> </td> <td style="padding-right: 10px; width:140px;vertical-align:bottom"> <?php echo label_tag(lang('user')) ?> </td> <td style="padding-right: 10px; width:140px;vertical-align:bottom"> <?php echo label_tag(lang('hours')) ?> </td> <td style="padding-right: 10px; width:140px;vertical-align:bottom"> <?php echo label_tag(lang('minutes')) ?> </td> <td style="padding-right: 10px; width:95%; margin-top: 0px;vertical-align:bottom"> <?php echo label_tag(lang('description')) ?> </td> <td style="padding-left: 10px;text-align:right; vertical-align: middle;"> </td> </tr> <tr> <td style="padding-right: 10px; width:140px;"> <?php echo pick_date_widget2('timeslot[date]', DateTimeValueLib::now(), $genid, 100, false) ?> </td> <td style="padding-right: 10px; width:140px;"> <?php $options = array(); foreach ($users as $user) { $options[] = option_tag($user->getObjectName(), $user->getId(), $selected_user == $user->getId() ? array("selected" => "selected") : null); }
<?php echo label_tag(lang('old password'), 'passwordFormOldPassword', true); ?> <?php echo password_field('password[old_password]'); ?> </div> <?php } // if ?> <div> <?php echo label_tag(lang('password'), 'passwordFormNewPassword', true); ?> <?php echo password_field('password[new_password]'); ?> </div> <div> <?php echo label_tag(lang('password again'), 'passwordFormNewPasswordAgain', true); ?> <?php echo password_field('password[new_password_again]'); ?> </div> <?php echo submit_button(lang('change password')); ?> </form>
echo lang('delete logo'); ?> </a></p> <?php } else { ?> <?php echo lang('no current logo'); } // if ?> </fieldset> <div> <?php echo label_tag(lang('new logo'), 'projectFormLogo', true); ?> <?php echo file_field('new_logo', null, array('id' => 'projectFormLogo')); if ($project->hasLogo()) { ?> <p class="desc"><?php echo lang('new logo notice'); ?> </p> <?php } // if ?> </div>
<?php tpl_display(get_template_path('form_errors')); ?> <div> <?php echo label_tag(lang('test mail recipient'), 'testMailFormRecipient', true); ?> <?php echo text_field('test_mail[recipient]', array_var($test_mail_data, 'recipient'), array('id' => 'testMailFormRecipient', 'class' => 'long')); ?> </div> <div> <?php echo label_tag(lang('test mail message'), 'testMailFormMessage', true); ?> <?php echo textarea_field('test_mail[message]', array_var($test_mail_data, 'message'), array('id' => 'testMailFormMessage')); ?> </div> <?php echo submit_button(lang('submit')); ?> </form> <?php if (extension_loaded('sockets')) { ?> <div>Socket functions are available so mailing is possible from PHP level</div>
if ($acol['id'] == $item['id']) { $list[$k]['text'] = $acol['name']; $add = false; break; } } if ($add) { $list[] = array('id' => $acol['id'], 'text' => $acol['name'], 'selected' => false); } if (!isset($order_by) || $order_by == '') { $order_by = 'updated_on'; } if ($acol['name'] == lang('workspace') || $acol['name'] == lang('tag')) { continue; } //to filter ordering by Workspace and by Tag $options[] = option_tag($acol['name'], $acol['id'], $acol['id'] == $order_by ? array('selected' => 'selected') : null); } // Render Order By combos if (!$for_task) { echo label_tag(lang('order by'), $genid . 'reportFormOrderBy', true, array('id' => 'orderByLbl')); echo select_box('report[order_by]', $options, array('id' => 'report[order_by]', 'style' => 'width:200px;')); $asc = option_tag(lang('ascending'), 'asc', $order_by_asc ? array('selected' => 'selected') : null); $desc = option_tag(lang('descending'), 'desc', !$order_by_asc ? array('selected' => 'selected') : null); echo select_box('report[order_by_asc]', array($asc, $desc), array('id' => 'report[order_by_asc]', 'style' => 'width:120px;')); echo "<br /><br />"; } // Render Column lists echo label_tag(lang('columns to print'), 'columns'); echo doubleListSelect("columns", $list, array('id' => $genid . "columns", 'size' => 20)); echo '<span class="desc">' . lang('columns to print desc') . '</span>';
?> </legend> <?php echo render_object_link_form($object); ?> </fieldset> </div> <?php } // if ?> <div> <?php echo label_tag(lang('text'), 'messageFormText', false); ?> <?php echo editor_widget('message[text]', array_var($message_data, 'text'), array('id' => $genid . 'messageFormText', 'tabindex' => '50')); ?> </div> <?php foreach ($categories as $category) { ?> <div <?php if (!$category['visible']) { echo 'style="display:none"'; } ?> id="<?php
<form class="internalForm" action="<?php echo get_url('access', 'forgot_password'); ?> " method="post"> <?php tpl_display(get_template_path('form_errors')); ?> <div class="form-container"> <?php if (!isset($_GET['instructions_sent']) || !$_GET['instructions_sent']) { ?> <div class="input"> <?php echo label_tag(lang('email address'), 'forgotPasswordEmail'); ?> <?php echo text_field('your_email', $your_email, array('class' => 'long', 'id' => 'forgotPasswordEmail')); ?> </div> <input type="hidden" name="submited" value="submited" /> <?php } ?> <div id="forgotPasswordSubmit"> <?php if (!isset($_GET['instructions_sent']) || !$_GET['instructions_sent']) { echo submit_button(lang('change password')); } ?>
<td><?php echo lang('add comment to message short') ?>: <?php echo select_message('project_form[message_id]', active_project(), array_var($project_form_data, 'message_id'), array('id' => 'projectFormActionSelectMessage')) ?></td> </tr> <tr> <td><?php echo radio_field('project_form[action]', array_var($project_form_data, 'action') == ProjectForm::ADD_TASK_ACTION, array('value' => ProjectForm::ADD_TASK_ACTION , 'id' => 'projectFormActionAddTask', 'onclick' => 'App.modules.addProjectForm.formActionClick()')) ?> <?php echo label_tag(lang('project form action add task'), 'projectFormActionAddTask', false, array('class' => 'checkbox'), '') ?></td> <td><?php echo lang('add task to list short') ?>: <?php echo select_task_list('project_form[task_list_id]', active_project(), array_var($project_form_data, 'task_list_id'), false, array('id' => 'projectFormActionSelectTaskList')) ?></td> </tr> </table> <script> App.modules.addProjectForm.formActionClick(); </script> </fieldset> </div> <div class="formBlock" id="projectFormOptions"> <fieldset> <legend><?php echo lang('options') ?></legend> <table class="blank"> <tr> <td><?php echo label_tag(lang('project form enabled')) ?></td> <td><?php echo yes_no_widget('project_form[is_enabled]', 'projectFormIsEnabled', array_var($project_form_data, 'is_enabled'), lang('yes'), lang('no')) ?></td> </tr> <tr> <td><?php echo label_tag(lang('project form visible')) ?></td> <td><?php echo yes_no_widget('project_form[is_visible]', 'projectFormIsVisible', array_var($project_form_data, 'is_visible'), lang('yes'), lang('no')) ?></td> </tr> </table> </fieldset> </div> <?php echo submit_button($project_form->isNew() ? lang('add form') : lang('edit form')) ?> </form>