CSS
This commit is contained in:
parent
cd491280cf
commit
856b83a202
@ -104,9 +104,10 @@ class FormWebsite
|
||||
* @param int $useempty 1=Add an empty value in list, 2=Add an empty value in list only if there is more than 2 entries.
|
||||
* @param string $moreattrib More attributes on HTML select tag
|
||||
* @param int $addjscombo Add js combo
|
||||
* @param string $morecss More CSS
|
||||
* @return void
|
||||
*/
|
||||
public function selectTypeOfContainer($htmlname, $selected = '', $useempty = 0, $moreattrib = '', $addjscombo = 0)
|
||||
public function selectTypeOfContainer($htmlname, $selected = '', $useempty = 0, $moreattrib = '', $addjscombo = 0, $morecss = 'minwidth200')
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
|
||||
@ -123,7 +124,7 @@ class FormWebsite
|
||||
$num = $this->db->num_rows($result);
|
||||
$i = 0;
|
||||
if ($num) {
|
||||
print '<select id="select'.$htmlname.'" class="flat selectTypeOfContainer minwidth200" name="'.$htmlname.'"'.($moreattrib ? ' '.$moreattrib : '').'>';
|
||||
print '<select id="select'.$htmlname.'" class="flat selectTypeOfContainer'.($morecss ? ' '.$morecss : '').'" name="'.$htmlname.'"'.($moreattrib ? ' '.$moreattrib : '').'>';
|
||||
if ($useempty == 1 || ($useempty == 2 && $num > 1)) {
|
||||
print '<option value="-1"> </option>';
|
||||
}
|
||||
|
||||
@ -4953,7 +4953,7 @@ tr.visible {
|
||||
|
||||
.websiteformtoolbar {
|
||||
position: sticky;
|
||||
top: <?php echo $disableimages ? '32px' : '52px'; ?>;
|
||||
top: <?php echo empty($dol_hide_topmenu) ? ($disableimages ? '32px' : '52px') : '0'; ?>;
|
||||
}
|
||||
|
||||
.exampleapachesetup {
|
||||
|
||||
@ -4883,7 +4883,7 @@ tr.visible {
|
||||
|
||||
.websiteformtoolbar {
|
||||
position: sticky;
|
||||
top: <?php echo $disableimages ? '36px' : '50px'; ?>;
|
||||
top: <?php echo empty($dol_hide_topmenu) ? ($disableimages ? '36px' : '50px') : '0'; ?>;
|
||||
}
|
||||
|
||||
.exampleapachesetup {
|
||||
|
||||
@ -3181,7 +3181,7 @@ if (!GETPOST('hide_websitemenu')) {
|
||||
field: \'editval_virtualhost\',
|
||||
element: \'website\',
|
||||
table_element: \'website\',
|
||||
fk_element: '.$object->id.',
|
||||
fk_element: '.((int) $object->id).',
|
||||
value: newurl,
|
||||
},
|
||||
context: document.body
|
||||
@ -4144,9 +4144,9 @@ if ($action == 'replacesite' || $action == 'replacesiteconfirm' || $massaction =
|
||||
print $langs->trans("SearchReplaceInto");
|
||||
print '</div>';
|
||||
print '<div class="tagtd">';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptioncontent" name="optioncontent" value="content"'.((!GETPOSTISSET('buttonreplacesitesearch') || GETPOST('optioncontent', 'aZ09')) ? ' checked' : '').'> <label for="checkboxoptioncontent">'.$langs->trans("Content").'</label><br>';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionmeta" name="optionmeta" value="meta"'.(GETPOST('optionmeta', 'aZ09') ? ' checked' : '').'> <label for="checkboxoptionmeta">'.$langs->trans("Title").' | '.$langs->trans("Description").' | '.$langs->trans("Keywords").'</label><br>';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionsitefiles" name="optionsitefiles" value="sitefiles"'.(GETPOST('optionsitefiles', 'aZ09') ? ' checked' : '').'> <label for="checkboxoptionsitefiles">'.$langs->trans("GlobalCSSorJS").'</label><br>';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptioncontent" name="optioncontent" value="content"'.((!GETPOSTISSET('buttonreplacesitesearch') || GETPOST('optioncontent', 'aZ09')) ? ' checked' : '').'> <label for="checkboxoptioncontent" class="tdoverflowmax150onsmartphone inline-block valignmiddle">'.$langs->trans("Content").'</label><br>';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionmeta" name="optionmeta" value="meta"'.(GETPOST('optionmeta', 'aZ09') ? ' checked' : '').'> <label for="checkboxoptionmeta" class="tdoverflowmax150onsmartphone inline-block valignmiddle">'.$langs->trans("Title").' | '.$langs->trans("Description").' | '.$langs->trans("Keywords").'</label><br>';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionsitefiles" name="optionsitefiles" value="sitefiles"'.(GETPOST('optionsitefiles', 'aZ09') ? ' checked' : '').'> <label for="checkboxoptionsitefiles" class="tdoverflowmax150onsmartphone inline-block valignmiddle">'.$langs->trans("GlobalCSSorJS").'</label><br>';
|
||||
print '</div>';
|
||||
print '</div>';
|
||||
|
||||
@ -4166,32 +4166,32 @@ if ($action == 'replacesite' || $action == 'replacesiteconfirm' || $massaction =
|
||||
print '<div class="tagtable">';
|
||||
|
||||
print '<div class="tagtr">';
|
||||
print '<div class="tagtd paddingrightonly opacitymedium" style="padding-right: 10px !important">';
|
||||
print '<div class="tagtd paddingrightonly opacitymedium tdoverflowmax100onsmartphone" style="padding-right: 10px !important">';
|
||||
print $langs->trans("WEBSITE_TYPE_CONTAINER");
|
||||
print '</div>';
|
||||
print '<div class="tagtd">';
|
||||
print img_picto('', 'object_technic', 'class="paddingrightonly"').' ';
|
||||
$formwebsite->selectTypeOfContainer('optioncontainertype', (GETPOST('optioncontainertype', 'alpha') ? GETPOST('optioncontainertype', 'alpha') : ''), 1);
|
||||
$formwebsite->selectTypeOfContainer('optioncontainertype', (GETPOST('optioncontainertype', 'alpha') ? GETPOST('optioncontainertype', 'alpha') : ''), 1, '', 1, 'minwidth125 maxwidth400 widthcentpercentminusx');
|
||||
print '</div>';
|
||||
print '</div>';
|
||||
|
||||
print '<div class="tagtr">';
|
||||
print '<div class="tagtd paddingrightonly opacitymedium" style="padding-right: 10px !important">';
|
||||
print '<div class="tagtd paddingrightonly opacitymedium tdoverflowmax100onsmartphone" style="padding-right: 10px !important">';
|
||||
print $langs->trans("Language");
|
||||
print '</div>';
|
||||
print '<div class="tagtd">';
|
||||
print img_picto('', 'language', 'class="paddingrightonly"').' '.$formadmin->select_language(GETPOSTISSET('optionlanguage') ? GETPOST('optionlanguage') : '', 'optionlanguage', 0, null, '1', 0, 0, 'minwidth300', 2, 0, 0, null, 1);
|
||||
print img_picto('', 'language', 'class="paddingrightonly"').' '.$formadmin->select_language(GETPOSTISSET('optionlanguage') ? GETPOST('optionlanguage') : '', 'optionlanguage', 0, null, '1', 0, 0, 'minwidth125 maxwidth400 widthcentpercentminusx', 2, 0, 0, null, 1);
|
||||
print '</div>';
|
||||
print '</div>';
|
||||
|
||||
// Categories
|
||||
if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
|
||||
print '<div class="tagtr">';
|
||||
print '<div class="tagtd paddingrightonly marginrightonly opacitymedium" style="padding-right: 10px !important">';
|
||||
print '<div class="tagtd paddingrightonly marginrightonly opacitymedium tdoverflowmax100onsmartphone" style="padding-right: 10px !important">';
|
||||
print $langs->trans("Category");
|
||||
print '</div>';
|
||||
print '<div class="tagtd">';
|
||||
print img_picto('', 'category', 'class="paddingrightonly"').' '.$form->select_all_categories(Categorie::TYPE_WEBSITE_PAGE, GETPOSTISSET('optioncategory') ? GETPOST('optioncategory') : '', 'optioncategory', null, null);
|
||||
print img_picto('', 'category', 'class="paddingrightonly"').' '.$form->select_all_categories(Categorie::TYPE_WEBSITE_PAGE, GETPOSTISSET('optioncategory') ? GETPOST('optioncategory') : '', 'optioncategory', 0, 0, 0, 0, 'minwidth125 maxwidth400 widthcentpercentminusx');
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php';
|
||||
print ajax_combobox('optioncategory');
|
||||
print '</div>';
|
||||
@ -4200,7 +4200,7 @@ if ($action == 'replacesite' || $action == 'replacesiteconfirm' || $massaction =
|
||||
|
||||
print '</div>';
|
||||
|
||||
print '<input type="submit" class="button" name="buttonreplacesitesearch" value="'.dol_escape_htmltag($langs->trans("Search")).'">';
|
||||
print '<input type="submit" class="button margintoponly" name="buttonreplacesitesearch" value="'.dol_escape_htmltag($langs->trans("Search")).'">';
|
||||
|
||||
print '</div></div>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user