当前位置: 首页>>代码示例>>PHP>>正文


PHP FormOther::selectColor方法代码示例

本文整理汇总了PHP中FormOther::selectColor方法的典型用法代码示例。如果您正苦于以下问题:PHP FormOther::selectColor方法的具体用法?PHP FormOther::selectColor怎么用?PHP FormOther::selectColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormOther的用法示例。


在下文中一共展示了FormOther::selectColor方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GETPOST

$i = 1;
$var = true;
while ($i <= $MAXAGENDA) {
    $key = $i;
    $name = 'AGENDA_EXT_NAME_' . $id . '_' . $key;
    $src = 'AGENDA_EXT_SRC_' . $id . '_' . $key;
    $color = 'AGENDA_EXT_COLOR_' . $id . '_' . $key;
    $var = !$var;
    print "<tr " . $bc[$var] . ">";
    // Nb
    print '<td width="180" class="nowrap">' . $langs->trans("AgendaExtNb", $key) . "</td>";
    // Name
    print '<td><input type="text" class="flat hideifnotset" name="AGENDA_EXT_NAME_' . $id . '_' . $key . '" value="' . (GETPOST('AGENDA_EXT_NAME_' . $id . '_' . $key) ? GETPOST('AGENDA_EXT_NAME_' . $id . '_' . $key) : $fuser->conf->{$name}) . '" size="28"></td>';
    // URL
    print '<td><input type="url" class="flat hideifnotset" name="AGENDA_EXT_SRC_' . $id . '_' . $key . '" value="' . (GETPOST('AGENDA_EXT_SRC_' . $id . '_' . $key) ? GETPOST('AGENDA_EXT_SRC_' . $id . '_' . $key) : $fuser->conf->{$src}) . '" size="60"></td>';
    // Color (Possible colors are limited by Google)
    print '<td class="nowrap" align="right">';
    //print $formadmin->selectColor($conf->global->$color, "google_agenda_color".$key, $colorlist);
    print $formother->selectColor(GETPOST("AGENDA_EXT_COLOR_" . $id . '_' . $key) ? GETPOST("AGENDA_EXT_COLOR_" . $id . '_' . $key) : $fuser->conf->{$color}, "AGENDA_EXT_COLOR_" . $id . '_' . $key, 'extsitesconfig', 1, '', 'hideifnotset');
    print '</td>';
    print "</tr>";
    $i++;
}
print '</table>';
dol_fiche_end();
print '<div align="center">';
print "<input type=\"submit\" id=\"save\" name=\"save\" class=\"button hideifnotset\" value=\"" . $langs->trans("Save") . "\">";
print "</div>";
print "</form>\n";
llxFooter();
$db->close();
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:agenda_extsites.php

示例2: GETPOST

    $name = 'AGENDA_EXT_NAME' . $key;
    $src = 'AGENDA_EXT_SRC' . $key;
    $offsettz = 'AGENDA_EXT_OFFSETTZ' . $key;
    $color = 'AGENDA_EXT_COLOR' . $key;
    $enabled = 'AGENDA_EXT_ENABLED' . $key;
    $var = !$var;
    print "<tr " . $bc[$var] . ">";
    // Nb
    print '<td width="180" class="nowrap">' . $langs->trans("AgendaExtNb", $key) . "</td>";
    // Name
    print '<td><input type="text" class="flat hideifnotset" name="AGENDA_EXT_NAME' . $key . '" value="' . (GETPOST('AGENDA_EXT_NAME' . $key) ? GETPOST('AGENDA_EXT_NAME' . $key) : $conf->global->{$name}) . '" size="28"></td>';
    // URL
    print '<td><input type="url" class="flat hideifnotset" name="AGENDA_EXT_SRC' . $key . '" value="' . (GETPOST('AGENDA_EXT_SRC' . $key) ? GETPOST('AGENDA_EXT_SRC' . $key) : $conf->global->{$src}) . '" size="60"></td>';
    // Offset TZ
    print '<td><input type="text" class="flat hideifnotset" name="AGENDA_EXT_OFFSETTZ' . $key . '" value="' . (GETPOST('AGENDA_EXT_OFFSETTZ' . $key) ? GETPOST('AGENDA_EXT_OFFSETTZ' . $key) : $conf->global->{$offsettz}) . '" size="2"></td>';
    // Color (Possible colors are limited by Google)
    print '<td class="nowrap" align="right">';
    //print $formadmin->selectColor($conf->global->$color, "google_agenda_color".$key, $colorlist);
    print $formother->selectColor(GETPOST("AGENDA_EXT_COLOR" . $key) ? GETPOST("AGENDA_EXT_COLOR" . $key) : $conf->global->{$color}, "AGENDA_EXT_COLOR" . $key, 'extsitesconfig', 1, '', 'hideifnotset');
    print '</td>';
    print "</tr>";
    $i++;
}
print '</table>';
dol_fiche_end();
print '<div class="center">';
print '<input type="submit" id="save" name="save" class="button hideifnotset" value="' . $langs->trans("Save") . '">';
print '</div>';
print "</form>\n";
llxFooter();
$db->close();
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:agenda_extsites.php

示例3: show_theme


//.........这里部分代码省略.........
                        if ($subdir == $conf->global->MAIN_THEME) {
                            $title = $langs->trans("ThemeCurrentlyActive");
                        } else {
                            $title = $langs->trans("ShowPreview");
                        }
                        print '<img src="' . $url . '" border="0" width="80" height="60" alt="' . $title . '" title="' . $title . '" style="margin-bottom: 5px;">';
                        print '</a><br>';
                        if ($subdir == $selected_theme) {
                            print '<input ' . ($edit ? '' : 'disabled') . ' type="radio" class="' . ($var ? 'imp' : '') . 'pair themethumbs" style="border: 0px;" checked name="main_theme" value="' . $subdir . '"> <b>' . $subdir . '</b>';
                        } else {
                            print '<input ' . ($edit ? '' : 'disabled') . ' type="radio" class="' . ($var ? 'imp' : '') . 'pair themethumbs" style="border: 0px;" name="main_theme" value="' . $subdir . '"> ' . $subdir;
                        }
                        print '</div>';
                        $i++;
                    }
                }
            }
        }
    }
    print '</div></td></tr></table>';
    print '</td></tr>';
    // BackgroundColor
    if ($foruserprofile) {
        /*$var=!$var;
            print '<tr '.$bc[$var].'>';
            print '<td>'.$langs->trans("TopMenuBackgroundColor").'</td>';
               print '<td>'.($conf->global->THEME_ELDY_TOPMENU_BACK1?$conf->global->THEME_ELDY_TOPMENU_BACK1:$langs->trans("Default")).'</td>';
               print '<td align="left" class="nowrap" width="20%"><input '.$bc[$var].' name="check_THEME_ELDY_TOPMENU_BACK1" id="check_THEME_ELDY_TOPMENU_BACK1" type="checkbox" '.(! empty($object->conf->THEME_ELDY_TOPMENU_BACK1)?" checked":"");
               print (empty($dolibarr_main_demo) && $edit)?'':' disabled="disabled"';	// Disabled for demo
               print '> '.$langs->trans("UsePersonalValue").'</td>';
               print '<td>';
            if ($edit)
            {
        		print $formother->selectColor(colorArrayToHex(colorStringToArray($conf->global->THEME_ELDY_TOPMENU_BACK1,array()),''),'THEME_ELDY_TOPMENU_BACK1','formcolor',1).' ';
            }
           	else
           	{
           		$color = colorArrayToHex(colorStringToArray($conf->global->THEME_ELDY_TOPMENU_BACK1,array()),'');
        		if ($color) print '<input type="text" class="colorthumb" disabled style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #'.$color.'" value="'.$color.'">';
        		else print '';
           	}
           	if ($edit) print '<br>('.$langs->trans("NotSupportedByAllThemes").', '.$langs->trans("PressF5AfterChangingThis").')';
            print '</td>';*/
    } else {
        $var = !$var;
        print '<tr ' . $bc[$var] . '>';
        print '<td>' . $langs->trans("BackgroundColor") . '</td>';
        print '<td colspan="' . ($colspan - 1) . '">';
        //var_dump($conf->global->THEME_ELDY_BACKBODY);
        if ($edit) {
            print $formother->selectColor(colorArrayToHex(colorStringToArray($conf->global->THEME_ELDY_BACKBODY, array()), ''), 'THEME_ELDY_BACKBODY', 'formcolor', 1) . ' ';
        } else {
            $color = colorArrayToHex(colorStringToArray($conf->global->THEME_ELDY_BACKBODY, array()), '');
            if ($color) {
                print '<input type="text" class="colorthumb" disabled="disabled" style="padding: 1px; margin-top: 0; margin-bottom: 0; background-color: #' . $color . '" value="' . $color . '">';
            } else {
                print $langs->trans("Default");
            }
        }
        print ' &nbsp; (' . $langs->trans("Default") . ': <strong>ffffff</strong>, ' . $langs->trans("NotSupportedByAllThemes") . ', ' . $langs->trans("PressF5AfterChangingThis") . ')';
        print '</td>';
    }
    // TopMenuBackgroundColor
    if ($foruserprofile) {
        /*$var=!$var;
            print '<tr '.$bc[$var].'>';
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:67,代码来源:usergroups.lib.php

示例4: array

 print '<tr><td width="25%" class="fieldrequired">' . $langs->trans("MailTitle") . '</td><td><input class="flat" name="titre" size="40" value="' . $_POST['titre'] . '"></td></tr>';
 print '<tr><td width="25%" class="fieldrequired">' . $langs->trans("MailFrom") . '</td><td><input class="flat" name="from" size="40" value="' . $conf->global->MAILING_EMAIL_FROM . '"></td></tr>';
 print '<tr><td width="25%">' . $langs->trans("MailErrorsTo") . '</td><td><input class="flat" name="errorsto" size="40" value="' . (!empty($conf->global->MAILING_EMAIL_ERRORSTO) ? $conf->global->MAILING_EMAIL_ERRORSTO : $conf->global->MAIN_MAIL_ERRORS_TO) . '"></td></tr>';
 // Other attributes
 $parameters = array();
 $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action);
 // Note that $action and $object may have been modified by hook
 if (empty($reshook) && !empty($extrafields->attribute_label)) {
     print $object->showOptionals($extrafields, 'edit');
 }
 print '</table>';
 print '</br><br>';
 print '<table class="border" width="100%">';
 print '<tr><td width="25%" class="fieldrequired">' . $langs->trans("MailTopic") . '</td><td><input class="flat" name="sujet" size="60" value="' . $_POST['sujet'] . '"></td></tr>';
 print '<tr><td width="25%">' . $langs->trans("BackgroundColorByDefault") . '</td><td colspan="3">';
 print $htmlother->selectColor($_POST['bgcolor'], 'bgcolor', 'new_mailing', 0);
 print '</td></tr>';
 print '<tr><td width="25%" valign="top"><span class="fieldrequired">' . $langs->trans("MailMessage") . '</span><br>';
 print '<br><i>' . $langs->trans("CommonSubstitutions") . ':<br>';
 foreach ($object->substitutionarray as $key => $val) {
     print $key . ' = ' . $langs->trans($val) . '<br>';
 }
 print '</i></td>';
 print '<td>';
 // Editeur wysiwyg
 require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
 $doleditor = new DolEditor('body', $_POST['body'], '', 320, 'dolibarr_mailings', '', true, true, $conf->global->FCKEDITOR_ENABLE_MAILING, 20, 70);
 $doleditor->Create();
 print '</td></tr>';
 print '</table>';
 print '<br><center><input type="submit" class="button" value="' . $langs->trans("CreateMailing") . '"></center>';
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php

示例5: DolEditor

	// Accountancy code
	if ($conf->salaries->enabled)
	{
		print '<tr><td>'.$langs->trans("AccountancyCode").'</td>';
		print '<td>';
		print '<input size="30" type="text" name="accountancy_code" value="'.GETPOST('accountancy_code').'">';
		print '</td></tr>';
	}

	// User color
	if (! empty($conf->agenda->enabled))
	{
		print '<tr><td>'.$langs->trans("ColorUser").'</td>';
		print '<td>';
		print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', null, 1, '', 'hideifnotset');
		print '</td></tr>';
	}

    // Note
    print '<tr><td class="tdtop">';
    print $langs->trans("Note");
    print '</td><td>';
    require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
    $doleditor=new DolEditor('note','','',180,'dolibarr_notes','',false,true,$conf->global->FCKEDITOR_ENABLE_SOCIETE,ROWS_4,90);
    $doleditor->Create();
    print "</td></tr>\n";

    // Other attributes
    $parameters=array('objectsrc' => $objectsrc, 'colspan' => ' colspan="3"');
    $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action);    // Note that $action and $object may have been modified by hook
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:30,代码来源:card.php

示例6: DolEditor

print $langs->trans("Ref") . '</td>';
print '<td><input type="text" size="25" id="label" name ="label" value="' . $object->label . '" />';
print '</tr>';
// Description
print '<tr>';
print '<td>' . $langs->trans("Description") . '</td>';
print '<td >';
require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
$doleditor = new DolEditor('description', $object->description, '', 200, 'dolibarr_notes', '', false, true, $conf->fckeditor->enabled, ROWS_6, 50);
$doleditor->Create();
print '</td></tr>';
// Color
print '<tr>';
print '<td>' . $langs->trans("Color") . '</td>';
print '<td >';
print $formother->selectColor($object->color, 'color');
print '</td></tr>';
// Parent category
print '<tr><td>' . $langs->trans("In") . '</td><td>';
print $form->select_all_categories($type, $object->fk_parent, 'parent', 64, $object->id);
print '</td></tr>';
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action);
// Note that $action and $object may have been modified by hook
if (empty($reshook) && !empty($extrafields->attribute_label)) {
    print $object->showOptionals($extrafields, 'edit');
}
print '</table>';
dol_fiche_end();
print '<div class="center"><input type="submit" class="button" value="' . $langs->trans("Modify") . '"></div>';
print '</form>';
llxFooter();
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:edit.php

示例7: GETPOST

$var = true;
while ($i <= $MAXAGENDA) {
    $key = $i;
    $name = 'AGENDA_EXT_NAME' . $key;
    $src = 'AGENDA_EXT_SRC' . $key;
    $color = 'AGENDA_EXT_COLOR' . $key;
    $var = !$var;
    print "<tr " . $bc[$var] . ">";
    // Nb
    print '<td width="180" class="nowrap">' . $langs->trans("AgendaExtNb", $key) . "</td>";
    // Name
    print '<td><input type="text" class="flat hideifnotset" name="agenda_ext_name' . $key . '" value="' . (GETPOST('agenda_ext_name' . $key) ? GETPOST('agenda_ext_name' . $key) : $conf->global->{$name}) . '" size="28"></td>';
    // URL
    print '<td><input type="url" class="flat hideifnotset" name="agenda_ext_src' . $key . '" value="' . (GETPOST('agenda_ext_src' . $key) ? GETPOST('agenda_ext_src' . $key) : $conf->global->{$src}) . '" size="60"></td>';
    // Color (Possible colors are limited by Google)
    print '<td class="nowrap" align="right">';
    //print $formadmin->selectColor($conf->global->$color, "google_agenda_color".$key, $colorlist);
    print $formother->selectColor(GETPOST("agenda_ext_color" . $key) ? GETPOST("agenda_ext_color" . $key) : $conf->global->{$color}, "agenda_ext_color" . $key, 'extsitesconfig', 1, '', 'hideifnotset');
    print '</td>';
    print "</tr>";
    $i++;
}
print '</table>';
print '<br>';
print '<center>';
print "<input type=\"submit\" id=\"save\" name=\"save\" class=\"button hideifnotset\" value=\"" . $langs->trans("Save") . "\">";
print "</center>";
print "</form>\n";
dol_fiche_end();
llxFooter();
$db->close();
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:agenda_extsites.php

示例8: DolEditor

 print load_fiche_titre($langs->trans("CreateCat"));
 dol_fiche_head('');
 print '<table width="100%" class="border">';
 // Ref
 print '<tr>';
 print '<td width="20%" class="fieldrequired">' . $langs->trans("Ref") . '</td><td><input id="label" class="flat" name="label" size="25" value="' . $label . '">';
 print '</td></tr>';
 // Description
 print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td>';
 require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
 $doleditor = new DolEditor('description', $description, '', 200, 'dolibarr_notes', '', false, true, $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC, ROWS_6, 50);
 $doleditor->Create();
 print '</td></tr>';
 // Color
 print '<tr><td>' . $langs->trans("Color") . '</td><td>';
 print $formother->selectColor($color, 'color');
 print '</td></tr>';
 // Parent category
 print '<tr><td>' . $langs->trans("AddIn") . '</td><td>';
 print $form->select_all_categories($type, $catorigin);
 print '</td></tr>';
 $parameters = array();
 $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action);
 // Note that $action and $object may have been modified by hook
 if (empty($reshook)) {
     print $object->showOptionals($extrafields, 'edit');
 }
 print '</table>';
 dol_fiche_end('');
 print '<div class="center">';
 print '<input type="submit" class="button" value="' . $langs->trans("CreateThisCat") . '" name="creation" />';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:card.php


注:本文中的FormOther::selectColor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。