Ejemplo n.º 1
0
?>
</option>
		    <option value="[company]"><?php 
echo _('Company');
?>
</option>
		</select>
		</form>		
        </div>
        <?php 
//$_SESSION['setting_mode'] = 'Yes';
if (isset($plugin_item_value)) {
    $_SESSION['do_user_email_teml']->getId($plugin_item_value);
    $do_user_email_teml->iduser = $_SESSION['do_User']->iduser;
    $do_user_email_teml->setRegistry("emailtemplate_user");
    $do_user_email_teml->newUpdateForm();
    $do_user_email_teml->form->goto = $_PHP['SELF'];
    echo $do_user_email_teml->form->getFormHeader();
    echo $do_user_email_teml->form->getFormEvent();
    echo '<b>' . _('Template Name') . ':</b>' . $do_user_email_teml->name;
    echo '<br/><b>' . _('Subject') . ':</b>' . $do_user_email_teml->subject;
    echo '<br/><b>' . _('Message') . '</b><br/>' . $do_user_email_teml->bodyhtml;
    echo '<div align="right">' . $do_user_email_teml->form->getFormFooter(_('Update')) . '</div>';
} else {
    $do_user_email_teml->iduser = $_SESSION['do_User']->iduser;
    $do_user_email_teml->newAddForm();
    $do_user_email_teml->form->goto = $_PHP['SELF'];
    echo $do_user_email_teml->form->getFormHeader();
    echo $do_user_email_teml->form->getFormEvent();
    echo '<b>' . _('Template Name') . ':</b>' . $do_user_email_teml->name;
    echo '<br/><b>' . _('Subject') . ':</b>' . $do_user_email_teml->subject;