Esempio n. 1
0
 /** 
  * formForgotPassword
  * Display a form for users to get password.
  * IT uses the form template: form/registrationForm
  * 
  */
 public function formGetPassword($button_text = "", $sent_message = "", $prompt_message = "")
 {
     if (empty($button_text)) {
         $button_text = _("Submit");
     }
     if (empty($sent_message)) {
         $sent_message = _("Your Password has been sent");
     }
     if (empty($prompt_message)) {
         $prompt_message = _("Enter your email address");
     }
     $field_email = new FieldTypeChar($this->getEmailField());
     $field_email->label = $prompt_message;
     $field_email->size = 20;
     $field_email->maxlenght = 40;
     $field_email->css_form_class = "formfield";
     $form_fields = new FieldsForm();
     $form_fields->addField($field_email);
     //$this->setFields($form_fields) ;
     $forgotpass_form = $this->newForm($this->getObjectName() . "->eventGetForgotPassword");
     //$forgotpass_form->addParam("message_goto",$_SERVER['PHP_SELF']);
     //$forgotpass_form->addParam("sent_message", $sent_message);
     $forgotpass_form->addParam("message_goto", "user_login.php");
     $forgotpass_form->addParam("message", $sent_message);
     $forgotpass_form->addParam("user_table", "user");
     $htmlform = $forgotpass_form->getFormHeader();
     $htmlform .= $forgotpass_form->getFormEvent();
     $htmlform .= $form_fields->{$this->getEmailField()};
     $htmlform .= $forgotpass_form->getFormFooter($button_text);
     echo $htmlform;
 }
Esempio n. 2
0
 <div id="contacts_ctlbar" style="display: none;">
    <?php 
echo '<b>' . _('With the selected Task(s) you can:') . '</b><br/>';
echo _('Change the task owner') . _(':');
echo $do_proj_task_operation->renderChangeTaskOwnerList($idproject);
echo '<br/>' . _(' or ') . ' ' . _('move them to another project') . _(':');
$_SESSION['do_project']->getAllProjects();
echo '<select name="project_id">' . $_SESSION['do_project']->getProjectsSelectOptions($_SESSION['do_project_task']->idproject) . '</select>';
echo '<input type="button" onclick = "changeProjMul();return false;" value="' . _('Move') . '">';
echo '<br/>' . _(' or ') . ' ' . _('change due date') . _(':');
// OO style using FieldsForm object to generate a field. The same thing we have on task.php to generate due_date but using JS and HTML
$field_due_date_mul = new DijitDateTextBox("due_date_mul");
$field_due_date_mul->datetype = 'dd-MM-y';
//$field_due_date_mul->name = 'due_date_mul';
$form_fields = new FieldsForm();
$form_fields->addField($field_due_date_mul);
echo $form_fields->due_date_mul;
// Ends Here
echo '<input type="button" onclick = "changeDueDateMul();return false;" value="' . _('Change Due Date') . '">';
echo '<br/>', _(' or '), '<span class="redlink"><a href="#" onclick="moveTasks(0);return false;">' . _('Promote them to the top') . '</a></span>';
echo '<br/>', _(' or '), '<span class="redlink"><a href="#" onclick="moveTasks(1);return false;">' . _('Drop them to the bottom') . '</a></span>';
echo '<br/>', _(' or '), '<span class="redlink"><a href="#" onclick="closeTaskMul();return false;">' . _('Close them all') . '</a></span>';
?>
        <div class="spacerblock_10"></div>
     <span class="sasnlinks">( <span class="bluelink"><a href="#" onclick="fnSelAll(); return false;"><?php 
echo _('select all');
?>
</a></span> | <span class="bluelink"><a href="#" onclick="fnSelNone(); return false;"><?php 
echo _('select none');
?>
</a></span> )</span>