/**
 * author: coster
 * date: 7.10.05
 * setzt die standardwerte der css eines vermieters
 * 
 * */
function setStandardCSS($gastro_id)
{
    setStyle(TISCH_BELEGT, "width: 75px;\n\t\t\t\t\t\t\theight: 75px;\n\t\t\t\t\t\t\tbackground-image:url(\"./templates/img/besteckgekreuzt.gif\");\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(TISCH_FREI, "width: 75px;\n\t\t\t\t\t\t\theight:75px;\n\t\t\t\t\t\t\tbackground-image:url(\"./templates/img/besteckNebeneinander.gif\");\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(BACKGROUND_COLOR, "background-color: #FFFFFF;\n\t\t\t\t\t\t\t  ", $gastro_id);
    setStyle(STANDARD_SCHRIFT, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tline-height: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tcolor: #000000;\n\t\t\t\t\t\t\t  ", $gastro_id);
    setStyle(SCHRIFT_KLEIN, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-size: 8px;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tline-height: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tcolor: #000000;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(BELEGT, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\tbackground-color: #FF0000;\n\t\t\t\t\t\t\t\t\t\tborder:1px solid #ccc;\n\t\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(FREI, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\tbackground-color: #009BFA;\n\t\t\t\t\t\t\t\t\tborder: 1px ridge #000000;\n\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(RESERVIERT, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\tbackground-color: #000000;\n\t\t\t\t\t\t\t\t\tborder: 1px ridge #000000;\n\t\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(STANDARD_SCHRIFT_BOLD, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\t\t\tline-height: normal;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfont-weight: bold;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: #000000;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(UEBERSCHRIFT, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-weight: bold;\n\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(TABLE_STANDARD, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\t\t\tbackground-color: #F1F1F7;\n\t\t\t\t\t\t\t\t\t\t\t\tborder:1px solid #ccc;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(TABLE_COLOR, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\t\tbackground-color: #FFFFFF;\n\t\t\t\t\t\t\t\t\t\t\tborder:1px solid #ccc;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(BUTTON, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\t\tbackground-color: #FFFFFF;\n\t\t\t\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t\t\t\t\twidth: 170px;\n\t\t\t\t\t\t\t\t\t\t\tborder:1px solid #ccc;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(SELECT, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\t\tbackground-color: #FFFFFF;\n\t\t\t\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t\t\t\t\tborder:1px solid #ccc;\n\t\t\t\t\t\t\t", $gastro_id);
    setStyle(BUTTON_HOVER, "font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\t\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\t\t\t\t\t\tbackground-color: #ccc;\n\t\t\t\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t\t\t\t\twidth: 170px;\n\t\t\t\t\t\t\t\t\t\t\tcolor: #000000;\n\t\t\t\t\t\t\t\t\t\t\tborder:1px solid #ccc;\n\t\t\t\t\t\t\t", $gastro_id);
}
Exemplo n.º 2
0
<title>Rico LiveGrid-Example 2 (editable)</title>
<script src="../../src/min.rico.js" type="text/javascript"></script>
<link href="../../src/css/min.rico.css" type="text/css" rel="stylesheet" />
<link href="../client/css/demo.css" type="text/css" rel="stylesheet" />

<?php 
$sqltext = ".";
// force filtering to "on" in settings box
require "applib.php";
require "../../plugins/php/ricoLiveGridForms.php";
require "settings.php";
?>

<script type='text/javascript'>
<?php 
setStyle();
?>

// ricoLiveGridForms will call orders_FormInit right before grid & form initialization.

function orders_FormInit() {
  var cal=new Rico.CalendarControl("Cal");
  RicoEditControls.register(cal, Rico.imgDir+'calarrow.png');
  cal.addHoliday(25,12,0,'Christmas','#F55','white');
  cal.addHoliday(4,7,0,'Independence Day-US','#88F','white');
  cal.addHoliday(1,1,0,'New Years','#2F2','white');
  
  var CustTree=new Rico.TreeControl("CustomerTree","CustTree.php");
  RicoEditControls.register(CustTree, Rico.imgDir+'dotbutton.gif');
}
</script>
Exemplo n.º 3
0
session_start();
$action = $_REQUEST['do'];
if ($action == "fetch") {
    echo "success";
    getList();
} else {
    if ($action == "add") {
        if (addStyle()) {
            echo "success";
            getList();
        } else {
            echo "failure";
        }
    } else {
        if ($action == "setStyle") {
            if (setStyle() == null) {
                echo "failure";
            } else {
                echo "success";
            }
        } else {
            if ($action == "delStyle") {
                if (delStyle() == null) {
                    echo "failure";
                } else {
                    echo "WHATsuccess";
                }
            } else {
                echo "no task!";
            }
        }
	{
		$content .= '<li class="links">';
		$content .= '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">';
		$content .= CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a></li>' . "\n";
	}
}
$content .= '</ul>';
*/
$content .= "<ul class=\"categories\">\n";
for ($i = 0; $i < sizeof($box_categories_array); $i++) {
    $prevLevel = $currentLevel;
    $currentLevel = count(explode('_', $box_categories_array[$i]['path']));
    $nextLevel = count(explode('_', $box_categories_array[$i + 1]['path']));
    $diffLevelPrev = $currentLevel - $prevLevel;
    $diffLevelNext = $currentLevel - $nextLevel;
    $class = setStyle($box_categories_array[$i]);
    $count = showCount_is($box_categories_array[$i]['count']);
    $addStr = setTags($diffLevelPrev, $diffLevelNext);
    $content .= $addStr['preLine'] . '<li' . $class . '>';
    $content .= '<a href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
    $content .= $box_categories_array[$i]['name'];
    $content .= $count . '</a>';
    $content .= $addStr['postLine'] . "";
}
$content .= "</ul>\n";
$content .= '</div>' . "\n";
function setStyle($box_categories_array)
{
    $top_is = $box_categories_array['top'];
    $has_sub_cat = $box_categories_array['has_sub_cat'];
    $current_is = $box_categories_array['current'];
Exemplo n.º 5
0
/**
 *Starts Orongo! :) 
 * @param String $paramCurrentPage the current page
 */
function startOrongo($paramCurrentPage = 'anonymous')
{
    session_start();
    define("ROOT", dirname(__FILE__));
    define("LIB", ROOT . "/lib");
    define("ADMIN", ROOT . "/orongo-admin");
    define("CONFIG", ROOT . "/config.php");
    define('RANK_ADMIN', 3);
    define('RANK_WRITER', 2);
    define('RANK_USER', 1);
    define('ARTICLE_NOT_EXIST', 2100);
    define('PAGE_NOT_EXIST', 3100);
    define('USER_NOT_EXIST', 4100);
    define('COMMENT_NOT_EXIST', 5100);
    error_reporting(E_ALL);
    if (file_exists("orongo-install.php")) {
        die("If you didn't install OrongoCMS yet, proceed to the <a href='orongo-install.php'>installer</a><br/>If you installed it, please delete orongo-install.php");
    }
    if (!file_exists(CONFIG)) {
        die("config.php (" . CONFIG . ") was missing!");
    }
    require_once CONFIG;
    require LIB . '/function_load.php';
    try {
        load(LIB);
    } catch (Exception $e) {
        die($e->getMessage());
    }
    setDatabase(new Database(CONFIG));
    try {
        setLanguage(new Language(ADMIN . '/lang/' . Settings::getLanguageName()));
    } catch (Exception $e) {
        $msgbox = new MessageBox();
        $msgbox->bindException($e);
        die($msgbox->getImports() . $msgbox->toHTML());
    }
    setCurrentPage($paramCurrentPage);
    $style = null;
    try {
        $style = Settings::getStyle();
    } catch (Exception $e) {
        $msgbox = new MessageBox();
        $msgbox->bindException($e);
        die($msgbox->getImports() . $msgbox->toHTML());
    }
    setMenu(new Menu());
    setStyle($style);
    setDisplay(new Display($style->getStylePath()));
    setUser(handleSessions());
    if (defined('HACK_PLUGINS') && HACK_PLUGINS == true) {
        Plugin::hackKeys();
    }
    try {
        setPlugins(Plugin::getActivatedPlugins('orongo-admin/'));
    } catch (Exception $e) {
        $msgbox = new MessageBox();
        $msgbox->bindException($e);
        getDisplay()->addObject($msgbox);
    }
    //getLanguage()->setTempLanguage(ADMIN . '/lang/en_US');
    OrongoDefaultEventHandlers::init();
}
}
if (isset($color) && $color != "") {
    $style = $style . "color: ";
    $style = $style . $color;
    $style = $style . ";";
}
if (isset($border) && $border != "") {
    $style = $style . "border: ";
    $style = $style . $border . " ridge " . $border_color;
    $style = $style . ";";
}
if (isset($background_color) && $background_color != "") {
    $style = $style . "background-color: ";
    $style = $style . $background_color;
    $style = $style . ";";
}
if (isset($height) && $height != "") {
    $style = $style . "height: ";
    $style = $style . $height;
    $style = $style . ";";
}
if (isset($width) && $width != "") {
    $style = $style . "width: ";
    $style = $style . $width;
    $style = $style . ";";
}
//stylesheet in datenbank eintragen:
setStyle($stylesheet, trim($style), $gastro_id);
$info = true;
$nachricht = "Das Design des ausgewählen Elementes wurde erfolgreich geändert!";
include_once "./styles.php";
        continue;
    }
    if (count($styles_sub) < 2) {
        $fehler = true;
        $nachricht = "Diese Definition \"" . $styles[$i] . "\" ist ungültig!";
        include_once "./stylesHochladen.php";
        exit;
    }
    $klassname = $styles_sub[0];
    $werts_neu = explode(";", $styles_sub[1]);
    if ($style = getStyle($klassname, $gastro_id)) {
        $werts_alt = explode(";", $style);
        for ($j = 0; $j < count($werts_alt) - 1; $j++) {
            $werts_alt[$j] = update($werts_alt[$j], $werts_neu);
        }
        setStyle($klassname, getString($werts_alt), $gastro_id);
        $aendern = true;
    }
}
if ($aendern) {
    $info = true;
    $nachricht = "Die Designs wurden erfolgreich geändert!";
    include_once "./stylesHochladen.php";
    exit;
} else {
    $fehler = true;
    $nachricht = "Kein entsprechendes Design in der Datei vorhanden!";
    include_once "./stylesHochladen.php";
    exit;
}
function update($alt, $neu_alle)
    $style = $style . "background-color: ";
    $style = $style . $background_color;
    $style = $style . ";";
}
if (isset($height) && $height != "") {
    $style = $style . "height: ";
    $style = $style . $height;
    $style = $style . ";";
}
if (isset($width) && $width != "") {
    $style = $style . "width: ";
    $style = $style . $width;
    $style = $style . ";";
}
//stylesheet in datenbank eintragen:
setStyle($stylesheet, trim($style), $vermieter_id);
?>
			<?php 
echo getUebersetzung("Das Design des ausgew�hlen Elementes wurde erfolgreich ge�ndert");
?>
!
			</td>
			</tr>
		 </table>
<br/>
<table border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td><form action="./index.php" method="post" name="form1" target="_self">
        <input type="submit" name="Submit3" value="<?php 
echo getUebersetzung("zur�ck");
?>