Esempio n. 1
0
File: edit.php Progetto: 01J/furcom
	{
		if (task == '<?php 
echo $task;
?>
.cancel' || document.formvalidator.isValid(document.id('adminForm'))) {
			Joomla.submitform(task, document.getElementById('adminForm'));
		}
		else {
			alert('<?php 
echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));
?>
');
		}
	}
</script><?php 
echo $r->startForm($option, $task, $this->item->id, 'adminForm', 'adminForm');
// First Column
echo '<div class="span10 form-horizontal">';
$tabs = array('general' => JText::_($OPT . '_GENERAL_OPTIONS'), 'publishing' => JText::_($OPT . '_PUBLISHING_OPTIONS'));
echo $r->navigation($tabs);
echo '<div class="tab-content">' . "\n";
echo '<div class="tab-pane active" id="general">' . "\n";
$formArray = array('title', 'usertitle', 'cattitle', 'ordering');
echo $r->group($this->form, $formArray);
$formArray = array('comment');
echo $r->group($this->form, $formArray, 1);
echo '</div>' . "\n";
echo '<div class="tab-pane" id="publishing">' . "\n";
foreach ($this->form->getFieldset('publish') as $field) {
    echo '<div class="control-group">';
    if (!$field->hidden) {
Esempio n. 2
0
				
				if (phocagallerymform.jform_catid.value == "" && nSelectedImages > 0){
					alert( "<?php 
echo JText::_('COM_PHOCAGALLERY_WARNING_IMG_SELECTED_SELECT_CATEGORY', true);
?>
" );
				} else {
					submitform(task);
				}
			}
		}
		//submitform(task);
	}
</script><?php 
echo '<div class="phoca-thumb-status">' . $this->tmpl['enablethumbcreationstatus'] . '</div>';
echo $r->startForm($option, $task, 'adminForm', 'adminForm');
echo '<div class="span4 form-horizontal" style="border-right: 1px solid #d3d3d3;padding-right: 5px; margin-right: 5px;">';
echo '<h4>' . JText::_('COM_PHOCAGALLERY_MULTIPLE_ADD') . '</h4>';
echo '<div>' . "\n";
$formArray = array('title', 'alias', 'published', 'approved', 'ordering', 'catid', 'language');
echo $r->group($this->form, $formArray);
echo '</div>' . "\n";
echo '</div>';
echo '<div class="span8 form-horizontal">';
echo '<div class="ph-admin-path">' . JText::_('COM_PHOCAGALLERY_PATH') . ': ' . JPath::clean($this->path->image_abs . $this->folderstate->folder) . '</div>';
$countFaF = count($this->images) + count($this->folders);
echo '<table class="table table-hover table-condensed ph-multiple-table">' . '<thead>' . '<tr>';
echo '<th class="hidden-phone ph-check">' . "\n" . '<input type="checkbox" name="checkall-toggle" value="" title="' . JText::_('JGLOBAL_CHECK_ALL') . '" onclick="Joomla.checkAll(this)" />' . "\n" . '</th>' . "\n";
echo '<th width="20">&nbsp;</th>' . '<th width="95%">' . JText::_('COM_PHOCAGALLERY_FILENAME') . '</th>' . '</tr>' . '</thead>';
echo '<tbody>';
$link = 'index.php?option=com_phocagallery&amp;view=phocagallerym&amp;layout=edit&amp;hidemainmenu=1&amp;folder=' . $this->folderstate->parent;