Example #1
0
$activation = recoverPOST("activation", $data[0]["Activation"]);
$emailRecieve = recoverPOST("email1", $data[0]["Email_Recieve"]);
$emailSend = recoverPOST("email2", $data[0]["Email_Send"]);
$situation = recoverPOST("situation", $data[0]["Situation"]);
$action = "edit";
$href = path($this->application . "/cpanel/edit");
print div("add-form", "class");
print formOpen($href, "form-add", "form-add");
print p(__(_(ucfirst(whichApplication()))), "resalt");
print isset($alert) ? $alert : NULL;
print formInput(array("name" => "name", "class" => "required span10", "field" => __(_("Name of the Website")), "p" => TRUE, "value" => $name));
print formInput(array("name" => "URL", "class" => "required span10", "field" => __(_("URL of the Website")), "p" => TRUE, "value" => $URL));
print formInput(array("name" => "slogan_spanish", "class" => "required span10", "field" => getLanguage("Spanish", TRUE) . " " . __(_("Slogan of the Website")), "p" => TRUE, "value" => $sloganEs));
print formInput(array("name" => "slogan_english", "class" => "required span10", "field" => getLanguage("English", TRUE) . " " . __(_("Slogan of the Website")), "p" => TRUE, "value" => $sloganEn));
print formInput(array("name" => "slogan_french", "class" => "required span10", "field" => getLanguage("French", TRUE) . " " . __(_("Slogan of the Website")), "p" => TRUE, "value" => $sloganFr));
print formInput(array("name" => "slogan_portuguese", "class" => "required span10", "field" => getLanguage("Portuguese", TRUE) . " " . __(_("Slogan of the Website")), "p" => TRUE, "value" => $sloganPt));
print formInput(array("name" => "email_recieve", "class" => "required span10", "field" => __(_("E-Mail for recieve notifications")), "p" => TRUE, "value" => $emailRecieve));
print formInput(array("name" => "email_send", "class" => "required span10", "field" => __(_("Email for send notifications")), "p" => TRUE, "value" => $emailSend));
print formSelect(array("name" => "theme", "class" => "required", "p" => TRUE, "field" => __(_("Default theme"))), $themes);
print formSelect(array("name" => "application", "class" => "required", "p" => TRUE, "field" => __(_("Default application"))), $defaultApplications);
$options = array(0 => array("value" => "Active", "option" => __(_("Active")), "selected" => $validation === "Active" ? TRUE : FALSE), 1 => array("value" => "Inactive", "option" => __(_("Inactive")), "selected" => $validation === "Inactive" ? TRUE : FALSE));
print formSelect(array("name" => "validation", "class" => "required", "p" => TRUE, "field" => __(_("Comments validations"))), $options);
$options = array(0 => array("value" => "User", "option" => __(_("User")), "selected" => $activation === "User" ? TRUE : FALSE), 1 => array("value" => "Admin", "option" => __(_("Administrator")), "selected" => $activation === "Admin" ? TRUE : FALSE));
print formSelect(array("name" => "activation", "class" => "required", "p" => TRUE, "field" => __(_("Accounts activation"))), $options);
$options = array(0 => array("value" => "Active", "option" => __(_("Active")), "selected" => $situation === "Active" ? TRUE : FALSE), 1 => array("value" => "Inactive", "option" => __(_("Inactive")), "selected" => $situation === "Inactive" ? TRUE : FALSE));
print formSelect(array("name" => "situation", "class" => "required", "p" => TRUE, "field" => __(_("Situation"))), $options);
print formTextarea(array("id" => "editor", "name" => "message", "class" => "required span10", "field" => __(_("Message when the Website is inactive")), "p" => TRUE, "value" => $message));
print formField(NULL, __(_("Languages")) . "<br />" . getLanguagesInput($language));
print formSave("edit");
print formClose();
print div(FALSE);
Example #2
0
print isset($documentsLibrary) ? $documentsLibrary : NULL;
?>
			<div id="file-uploader">		
				<noscript>			
					<p>Please enable JavaScript to use file uploader.</p>
					<!-- or put a simple form for upload here -->
				</noscript>         
			</div>
			<?php 
if (isset($tags)) {
    $var["tags"] = $tags;
    $this->view("tags", $var, "tags");
} else {
    $this->view("tags", NULL, "tags");
}
print formField(NULL, __(_("Language of the post")) . "<br />" . getLanguagesInput($language, "language", "select"));
$options = array(0 => array("value" => 1, "option" => __(_("Yes")), "selected" => TRUE), 1 => array("value" => 0, "option" => __(_("No"))));
print formSelect(array("name" => "enable_comments", "class" => "required", "p" => TRUE, "field" => __(_("Enable Comments"))), $options);
$options = array(0 => array("value" => "Active", "option" => __(_("Active")), "selected" => $situation === "Active" ? TRUE : FALSE), 1 => array("value" => "Inactive", "option" => __(_("Inactive")), "selected" => $situation === "Inactive" ? TRUE : FALSE));
print formSelect(array("name" => "situation", "p" => TRUE, "class" => "required", "field" => __(_("Situation"))), $options);
if (!isset($pwd)) {
    print formInput(array("name" => "pwd", "class" => "span10", "field" => __(_("Password")), "p" => TRUE, "value" => $pwd));
} else {
    print formField(NULL, __(_("Password")) . "<br />");
    print formInput(array("id" => "lock", "class" => "lock", "type" => "button"));
    print formInput(array("id" => "password", "type" => "hidden", "value" => $pwd));
}
print formInput(array("type" => "file", "name" => "image", "field" => __(_("Image for this post")), "p" => TRUE));
if (isset($medium)) {
    print img(path($medium, TRUE));
}
Example #3
0
		<?php 
print $categories;
?>
	</div>
	
	<div class="add-categories">
		<p>
			<span style="font-size: 0.8em;"><?php 
print __(_("New category"));
?>
</span> <br />
			
			<input id="category" name="category" type="text" class="required" style="width: 95%" /><br />			
			
			<?php 
print getLanguagesInput(whichLanguage(), "language_category", "select");
?>
		</p>
		
		<span class="bold"><?php 
print __(_("Parent category"));
?>
:</span>
		
		<div id="div-categories-radio" class="add-categories-wrapper">
			<?php 
print $categoriesRadio;
?>
		</div>		
		
		<input name="add-category" value="<?php