}
            $i++;
        }
        echo "\t" . 'color: ' . $color['color_hex'] . ';' . "\r\n}\r\n";
    }
}
?>
		::selection{
			background-color: <?php 
echo get_color('selection');
?>
;
		}
		::-moz-selection{
			background-color: <?php 
echo get_color('selection');
?>
;
		}
		/*#contentwrap{
			background-color:<?php 
echo $GLOBALS['site_layout']['contentbg_color'];
?>
 !important;
		}*/
/*		.mobile, ul.side-nav, slide-out, .title, .jssorb01 div:hover, .jssorb01 .av:hover, jssora05l, jssora05r{
			background-color: #FFFFFF;
		}*/
		/*.mobile, ul.side-nav, slide-out, .blogtitle{
			background-color:<?php 
echo $GLOBALS['site_layout']['accent_color'];
Example #2
0
                !$db->inserttable(table('category_hunterjobs'), $setsqlarr) ? adminmsg("保存失败!", 0) : "";
                $num = $num + $db->affected_rows();
            }
        }
        //填写管理员日志
        write_log("后台成功添加猎头职位分类!本次添加了" . $num . "个分类", $_SESSION['admin_name'], 3);
    }
    $link[0]['text'] = "返回列表";
    $link[0]['href'] = '?act=hunter_jobs';
    makejs_classify();
    makejs_train_classify();
    adminmsg("添加成功!本次添加了" . $num . "个分类", 2, $link);
} elseif ($act == 'colorlist') {
    get_token();
    $smarty->assign('navlabel', "color");
    $smarty->assign('color', get_color());
    $smarty->display('category/admin_color.htm');
} elseif ($act == 'add_color') {
    get_token();
    $smarty->assign('navlabel', "color");
    $smarty->display('category/admin_color_add.htm');
} elseif ($act == 'add_color_save') {
    check_token();
    $setsqlarr['value'] = !empty($_POST['val']) ? trim($_POST['val']) : adminmsg("请选择颜色", 1);
    $link[0]['text'] = "颜色列表";
    $link[0]['href'] = '?act=colorlist';
    $link[1]['text'] = "继续添加颜色";
    $link[1]['href'] = "?act=add_color";
    //填写管理员日志
    write_log("后台添加颜色分类!", $_SESSION['admin_name'], 3);
    $db->inserttable(table('color'), $setsqlarr) ? adminmsg("添加成功!", 2, $link) : adminmsg("添加失败!", 0);
{
    $color = new Color($name, $label, $args);
    return $color->render();
}
/**
* <pre>skip_color( $name, $args = array() );</pre>
*
* Adding a jQuery UI color field.
* 
* <b>Default Usage</b>
* <code>
* skip_color( 'backgroundcolor' );
* </code>
* This will create an automated saved field with a jQueryui Colorpicker.
* 
* <b>Parameters</b>
* 
* <code>
* $name // (string) (required) The name of the field.
* $args // (array/string) (optional) Values for further settings.
* </code>
* 
* <b>$args Settings</b>
* 
* <ul>
* 	<li>id (string) ID if the HTML Element.</li> 
* 	<li>label  (string) Label for Element.</li> 
* 	<li>default (string) Default Value if no Value is set before.</li>
* 	<li>classes (string) Name of CSS Classes which will be inserted into HTML seperated by empty space.</li>
* 	<li>before_element (string) Content before the element.</li>
*	<li>after_element (string) Content after the element.</li>
* </ul>
* 
* <b>Example</b>
* 
* Creating a labeled Colorfield in an automatic saved form.
* <code>
* skip_form_start( 'myformname' );
* 
* $args = array(
* 	'id' = 'myelementid',
* 	'label' => 'Background Color'
* );
* skip_color( 'backgroundcolor', $args );
* 
* skip_form_end();
* </code>
* 
* Getting back the saved data.
* <code>
* $city = skip_value( 'myformname', 'backgroundcolor' );
* </code>
* @package Skip\Forms
* @since 1.0
* @param string $name Name of Color field.
* @param array/string $args List of Arguments.
*/
Example #4
0
 if ($last_modified_id == $arr['id']) {
     echo ' last_modified';
 }
 echo "' height='36'>" . $arr['id'] . "</td>";
 echo "<td class='list'><span class='number'>" . $arr['number'] . "</span> <div style='float:right'><span class='shift_ch' data-direction='1'>&darr;</span> <span class='shift_ch' data-direction='-1'>&uarr;</span></div></td>";
 echo "<td class='list'>" . $arr['service_id'] . "</td>";
 echo "<td class='list'>";
 echo '<table cellpadding="0" cellspacing="0">';
 echo '<tr>';
 echo '<td>';
 if ($ch_logo = Itv::getLogoUriById(intval($arr['id']), 120)) {
     echo '<img src ="' . $ch_logo . '"/ >';
 }
 echo '</td>';
 echo '<td>';
 echo '<b style="color:' . get_color($arr) . '" title="' . get_hint($arr) . '">' . $arr['name'] . '</b>';
 echo '</td>';
 echo '</tr>';
 echo '</table>';
 echo "</td>";
 echo "<td class='list'>" . $arr['cmd'] . "</td>";
 echo "<td class='list'>" . $arr['xmltv_id'] . "</td>";
 echo "<td class='list'>" . (!empty($arr['genres_name']) ? _($arr['genres_name']) : '----') . "</td>";
 echo "<td class='list' align='center'>" . ($arr['enable_tv_archive'] == 1 ? '&bull;' : '') . "</td>";
 echo "<td class='list'>" . $arr['volume_correction'] . "</td>";
 echo "<td class='list' align='center'>\n";
 if (Admin::isActionAllowed()) {
     echo "<a href='#' onclick='if(confirm(\"" . _('Do you really want to reset claims counter?') . "\")){document.location=\"claims.php?reset=1&media_id=" . $arr['media_id'] . "&media_type=" . $arr['media_type'] . "\"}'>";
 }
 echo "<span style='color:red;font-weight:bold'>" . $arr['video_counter'] . " / " . $arr['sound_counter'] . " / " . $arr['no_epg'], " / " . $arr['wrong_epg'] . "</span>";
 if (Admin::isActionAllowed()) {
Example #5
0
    </tr>
    <tr>
      <td width="10" height="20">&nbsp;</td>
      <td height="10"><font color="#FF3300">套餐内' . $promotion["cat_name"] . '总条数:
			  ' . $data["total_num"] . '条</font></td>
    </tr>
    <tr>
      <td width="10" height="20">&nbsp;</td>
      <td height="10"><font color="#FF3300">套餐内' . $promotion["cat_name"] . '剩余:
			   ' . $data["num"] . '条</font></td>
    </tr><tr>
      <td width="20" height="10">&nbsp;</td>
      <td height="10"><font color="#FF3300">推广方案:' . $promotion["cat_name"] . '<font></td>
    </tr>';
            if ($promotion["cat_id"] == 4) {
                $color = get_color();
                $html .= '<tr>
					<td align="right"></td>
					<td>
					选择颜色:
					</td>
				  </tr><tr>
					<td align="right"></td>
					<td>
						<input id="val" name="val" type="text" value="" class="input_text_100"/><div style="width:220px;" class="color_picker">';
                foreach ($color as $key => $value) {
                    $html .= '<div class="icolor" value="' . trim($value["value"], "#") . '" style="cursor:pointer;float:left; background-color: ' . $value["value"] . ';height:20px; width:30px;font-size:0px;margin:1px;"></div>';
                }
                $html .= '</div>
					</td>
				  </tr>';
function tc_rating_color_function($atts, $content = null)
{
    extract(shortcode_atts(array("score" => ""), $atts));
    return get_color($score);
}
Example #7
0
     $this_device_disp--;
     break;
 case 'GustStrength':
     if (!isset($datam['dashboard']['GustStrength'])) {
         break;
     }
     if (is_null($datam['dashboard']['GustStrength'])) {
         break;
     }
     if ($unitmetric == 0) {
         $speed = sprintf(__('%skm/h'), round((int) $datam['dashboard']['GustStrength']));
     } else {
         $speed = sprintf(__('%smph'), round((int) $datam['dashboard']['GustStrength'] * 0.621371));
     }
     echo '<tr><th valign="top">' . __('Gust Strength') . '</th><td valign="top" style="color:';
     echo get_color((int) $datam['dashboard']['GustStrength'], 0, 100, 0, 255, 0, 255, 0, 0) . '">';
     echo $speed;
     echo '</td></tr>';
     $this_device_disp--;
     break;
 case 'GustAngle':
     if (!isset($datam['dashboard']['GustAngle'])) {
         break;
     }
     if (is_null($datam['dashboard']['GustAngle'])) {
         break;
     }
     echo '<tr><th valign="top">' . __('Gust Angle') . '</th><td valign="top">';
     echo sprintf(__('%s°'), $datam['dashboard']['GustAngle']);
     echo '</td></tr>';
     $this_device_disp--;
Example #8
0
function print_post($para_print_post, $cate_slug)
{
    $approveCom = wp_count_comments($para_print_post['id']);
    $output .= '<article class="newsCenter" id="post-' . $para_print_post['id'] . '" style="border-top: 2px solid ' . get_color($cate_slug) . ';">';
    $output .= '<div class="autNewsCt row">';
    $output .= '<div class="top-box-article"> ';
    $output .= '<span class="ctnAutCt col-md-10 col-sm-10 col-xs-9 col-lg-5">';
    $output .= '<h4>';
    $output .= '<a href="' . $para_print_post['link'] . '">' . $para_print_post['title'] . '</a>';
    $output .= '</h4>';
    $output .= '</span>';
    $output .= '<a class="date-post" href="' . $para_print_post['link'] . '">' . $para_print_post['date'] . '</a>';
    $output .= '<div class="icon-list-btn col-lg-4">';
    $output .= '<ul>';
    $output .= '<li>';
    $output .= '<span title="Cảm ơn"><i class="fa fa-heart"></i></span>';
    $output .= '<br/>';
    $output .= '<span class="value-btn">' . getPostLoves($para_print_post['id']) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<a title="Chia sẻ" class="btn-shareface" data-gtmname="chia-se" rel="nofollow" target="_blank" href="http://www.facebook.com/sharer.php?u=' . $para_print_post['link'] . '">';
    $output .= '<span><i class="fa fa-share-alt"></i></span>';
    $output .= '<br/>';
    $output .= '<span class="value-btn">' . get_post_shares($para_print_post['id']) . '</span>';
    $output .= '</a>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span title="Lượt xem" ><i class="fa fa-eye"></i></i></span>';
    $output .= '<br/>';
    $output .= '<span class="value-btn">' . getPostViews($para_print_post['id']) . '</span>';
    $output .= '</li>';
    $output .= '</ul>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '<div class="bottom-box-article">';
    $output .= '<a class="link-post-content" href="' . $para_print_post['link'] . '">';
    $output .= '<p>' . $para_print_post['except'] . '</p>';
    $output .= '</a>';
    $output .= '<div class="imgArtCt">';
    $output .= '<em>';
    $output .= '<a href="' . $para_print_post['link'] . '"><img src="' . $para_print_post['image_link'] . '" alt="' . $para_print_post['title'] . '"></a>';
    $output .= '</em>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '</article>';
    echo $output;
}
Example #9
0
function drawMapLabels(&$im, $map, $mapInfo, $resolveMacros, $graphtheme)
{
    if ($map['label_type'] == MAP_LABEL_TYPE_NOTHING && $map['label_format'] == SYSMAP_LABEL_ADVANCED_OFF) {
        return;
    }
    $selements = $map['selements'];
    $allStrings = '';
    $labelLines = [];
    $statusLines = [];
    foreach ($selements as $sid => $selement) {
        if (isset($selement['elementsubtype']) && $selement['elementsubtype'] == SYSMAP_ELEMENT_SUBTYPE_HOST_GROUP_ELEMENTS) {
            unset($selements[$sid]);
        }
    }
    // set label type and custom label text for all selements
    foreach ($selements as $selementId => $selement) {
        $selements[$selementId]['label_type'] = $map['label_type'];
        if ($map['label_format'] == SYSMAP_LABEL_ADVANCED_OFF) {
            continue;
        }
        switch ($selement['elementtype']) {
            case SYSMAP_ELEMENT_TYPE_HOST_GROUP:
                $selements[$selementId]['label_type'] = $map['label_type_hostgroup'];
                if ($map['label_type_hostgroup'] == MAP_LABEL_TYPE_CUSTOM) {
                    $selements[$selementId]['label'] = $map['label_string_hostgroup'];
                }
                break;
            case SYSMAP_ELEMENT_TYPE_HOST:
                $selements[$selementId]['label_type'] = $map['label_type_host'];
                if ($map['label_type_host'] == MAP_LABEL_TYPE_CUSTOM) {
                    $selements[$selementId]['label'] = $map['label_string_host'];
                }
                break;
            case SYSMAP_ELEMENT_TYPE_TRIGGER:
                $selements[$selementId]['label_type'] = $map['label_type_trigger'];
                if ($map['label_type_trigger'] == MAP_LABEL_TYPE_CUSTOM) {
                    $selements[$selementId]['label'] = $map['label_string_trigger'];
                }
                break;
            case SYSMAP_ELEMENT_TYPE_MAP:
                $selements[$selementId]['label_type'] = $map['label_type_map'];
                if ($map['label_type_map'] == MAP_LABEL_TYPE_CUSTOM) {
                    $selements[$selementId]['label'] = $map['label_string_map'];
                }
                break;
            case SYSMAP_ELEMENT_TYPE_IMAGE:
                $selements[$selementId]['label_type'] = $map['label_type_image'];
                if ($map['label_type_image'] == MAP_LABEL_TYPE_CUSTOM) {
                    $selements[$selementId]['label'] = $map['label_string_image'];
                }
                break;
        }
    }
    foreach ($selements as $selementId => $selement) {
        if (!isset($labelLines[$selementId])) {
            $labelLines[$selementId] = [];
        }
        if (!isset($statusLines[$selementId])) {
            $statusLines[$selementId] = [];
        }
        $msg = $resolveMacros ? CMacrosResolverHelper::resolveMapLabelMacrosAll($selement) : $selement['label'];
        $allStrings .= $msg;
        $msgs = explode("\n", $msg);
        foreach ($msgs as $msg) {
            $labelLines[$selementId][] = ['msg' => $msg];
        }
        $elementInfo = $mapInfo[$selementId];
        foreach (['problem', 'unack', 'maintenance', 'ok', 'status'] as $caption) {
            if (!isset($elementInfo['info'][$caption]) || zbx_empty($elementInfo['info'][$caption]['msg'])) {
                continue;
            }
            $statusLines[$selementId][] = ['msg' => $elementInfo['info'][$caption]['msg'], 'color' => $elementInfo['info'][$caption]['color']];
            $allStrings .= $elementInfo['info'][$caption]['msg'];
        }
    }
    $allLabelsSize = imageTextSize(8, 0, str_replace("\r", '', str_replace("\n", '', $allStrings)));
    $labelFontHeight = $allLabelsSize['height'];
    $labelFontBaseline = $allLabelsSize['baseline'];
    $elementsHostIds = [];
    foreach ($selements as $selement) {
        if ($selement['label_type'] != MAP_LABEL_TYPE_IP) {
            continue;
        }
        if ($selement['elementtype'] == SYSMAP_ELEMENT_TYPE_HOST) {
            $elementsHostIds[] = $selement['elementid'];
        }
    }
    if (!empty($elementsHostIds)) {
        $mapHosts = API::Host()->get(['hostids' => $elementsHostIds, 'output' => ['hostid'], 'selectInterfaces' => API_OUTPUT_EXTEND]);
        $mapHosts = zbx_toHash($mapHosts, 'hostid');
    }
    // draw
    foreach ($selements as $selementId => $selement) {
        if (empty($selement) || $selement['label_type'] == MAP_LABEL_TYPE_NOTHING) {
            continue;
        }
        $elementInfo = $mapInfo[$selementId];
        $hl_color = null;
        $st_color = null;
        if (!isset($_REQUEST['noselements']) && $map['highlight'] % 2 == SYSMAP_HIGHLIGHT_ON) {
            if ($elementInfo['icon_type'] == SYSMAP_ELEMENT_ICON_ON) {
                $hl_color = true;
            }
            if ($elementInfo['icon_type'] == SYSMAP_ELEMENT_ICON_MAINTENANCE) {
                $st_color = true;
            }
            if ($elementInfo['icon_type'] == SYSMAP_ELEMENT_ICON_DISABLED) {
                $st_color = true;
            }
        }
        if (in_array($selement['elementtype'], [SYSMAP_ELEMENT_TYPE_HOST_GROUP, SYSMAP_ELEMENT_TYPE_MAP]) && !is_null($hl_color)) {
            $st_color = null;
        } elseif (!is_null($st_color)) {
            $hl_color = null;
        }
        $labelLocation = is_null($selement['label_location']) || $selement['label_location'] < 0 ? $map['label_location'] : $selement['label_location'];
        $label = [];
        if ($selement['label_type'] == MAP_LABEL_TYPE_IP && $selement['elementtype'] == SYSMAP_ELEMENT_TYPE_HOST) {
            $interface = reset($mapHosts[$selement['elementid']]['interfaces']);
            $label[] = ['msg' => $interface['ip']];
            $label = array_merge($label, $statusLines[$selementId]);
        } elseif ($selement['label_type'] == MAP_LABEL_TYPE_STATUS) {
            $label = $statusLines[$selementId];
        } elseif ($selement['label_type'] == MAP_LABEL_TYPE_NAME) {
            $label[] = ['msg' => $elementInfo['name']];
            $label = array_merge($label, $statusLines[$selementId]);
        } else {
            $label = array_merge($labelLines[$selementId], $statusLines[$selementId]);
        }
        if (empty($label)) {
            continue;
        }
        $w = 0;
        foreach ($label as $str) {
            $dims = imageTextSize(8, 0, $str['msg']);
            $w = max($w, $dims['width']);
        }
        $h = count($label) * $labelFontHeight;
        $x = $selement['x'];
        $y = $selement['y'];
        $image = get_png_by_selement($elementInfo);
        $iconX = imagesx($image);
        $iconY = imagesy($image);
        if (!is_null($hl_color)) {
            $icon_hl = 14;
        } elseif (!is_null($st_color)) {
            $icon_hl = 6;
        } else {
            $icon_hl = 2;
        }
        switch ($labelLocation) {
            case MAP_LABEL_LOC_TOP:
                $y_rec = $y - $icon_hl - $h - 6;
                $x_rec = $x + $iconX / 2 - $w / 2;
                break;
            case MAP_LABEL_LOC_LEFT:
                $y_rec = $y - $h / 2 + $iconY / 2;
                $x_rec = $x - $icon_hl - $w;
                break;
            case MAP_LABEL_LOC_RIGHT:
                $y_rec = $y - $h / 2 + $iconY / 2;
                $x_rec = $x + $iconX + $icon_hl;
                break;
            case MAP_LABEL_LOC_BOTTOM:
            default:
                $y_rec = $y + $iconY + $icon_hl;
                $x_rec = $x + $iconX / 2 - $w / 2;
        }
        $increasey = 12;
        foreach ($label as $line) {
            if (zbx_empty($line['msg'])) {
                continue;
            }
            $str = str_replace("\r", '', $line['msg']);
            $color = isset($line['color']) ? $line['color'] : $graphtheme['textcolor'];
            $dims = imageTextSize(8, 0, $str);
            if ($labelLocation == MAP_LABEL_LOC_TOP || $labelLocation == MAP_LABEL_LOC_BOTTOM) {
                $x_label = $x + ceil($iconX / 2) - ceil($dims['width'] / 2);
            } elseif ($labelLocation == MAP_LABEL_LOC_LEFT) {
                $x_label = $x_rec + $w - $dims['width'];
            } else {
                $x_label = $x_rec;
            }
            imagefilledrectangle($im, $x_label - 1, $y_rec + $increasey - $labelFontHeight + $labelFontBaseline, $x_label + $dims['width'] + 1, $y_rec + $increasey + $labelFontBaseline, get_color($im, $graphtheme['backgroundcolor']));
            imagetext($im, 8, 0, $x_label, $y_rec + $increasey, get_color($im, $color), $str);
            $increasey += $labelFontHeight + 1;
        }
    }
}
Example #10
0
 public function drawRectangle($x1, $y1, $x2, $y2, $color)
 {
     imagerectangle($this->canvas, $x1, $y1, $x2, $y2, get_color($this->canvas, $color));
 }
Example #11
0
/**
 * Draw trigger recent change markers.
 *
 * @param resource $im
 * @param int      $x
 * @param int      $y
 * @param int      $offset
 * @param string   $color
 * @param string   $marks	"t" - top, "r" - right, "b" - bottom, "l" - left
 */
function imageVerticalMarks($im, $x, $y, $offset, $color, $marks)
{
    $polygons = 5;
    $gims = ['t' => [0, 0, -6, -6, -3, -9, 3, -9, 6, -6], 'r' => [0, 0, 6, -6, 9, -3, 9, 3, 6, 6], 'b' => [0, 0, 6, 6, 3, 9, -3, 9, -6, 6], 'l' => [0, 0, -6, 6, -9, 3, -9, -3, -6, -6]];
    foreach ($gims['t'] as $num => $px) {
        if ($num % 2 == 0) {
            $gims['t'][$num] = $px + $x;
        } else {
            $gims['t'][$num] = $px + $y - $offset;
        }
    }
    foreach ($gims['r'] as $num => $px) {
        if ($num % 2 == 0) {
            $gims['r'][$num] = $px + $x + $offset;
        } else {
            $gims['r'][$num] = $px + $y;
        }
    }
    foreach ($gims['b'] as $num => $px) {
        if ($num % 2 == 0) {
            $gims['b'][$num] = $px + $x;
        } else {
            $gims['b'][$num] = $px + $y + $offset;
        }
    }
    foreach ($gims['l'] as $num => $px) {
        if ($num % 2 == 0) {
            $gims['l'][$num] = $px + $x - $offset;
        } else {
            $gims['l'][$num] = $px + $y;
        }
    }
    $color = get_color($im, $color);
    $polygon_color = get_color($im, '960000');
    if (strpos($marks, 't') !== false) {
        imagefilledpolygon($im, $gims['t'], $polygons, $color);
        imagepolygon($im, $gims['t'], $polygons, $polygon_color);
    }
    if (strpos($marks, 'r') !== false) {
        imagefilledpolygon($im, $gims['r'], $polygons, $color);
        imagepolygon($im, $gims['r'], $polygons, $polygon_color);
    }
    if (strpos($marks, 'b') !== false) {
        imagefilledpolygon($im, $gims['b'], $polygons, $color);
        imagepolygon($im, $gims['b'], $polygons, $polygon_color);
    }
    if (strpos($marks, 'l') !== false) {
        imagefilledpolygon($im, $gims['l'], $polygons, $color);
        imagepolygon($im, $gims['l'], $polygons, $polygon_color);
    }
}
Example #12
0
			<th class="text-center">Screw</th>
			<th class="text-center">Instructions</th>
		</tr>
	</thead>
		
	<tbody>
	<?php 
for ($i = 0; $i < 4; $i++) {
    ?>
		
		<tr class="<?php 
    echo get_row_color($screws[$i]['s']);
    ?>
">
			<td class="text-center"><span class="badge  badge <?php 
    echo get_color($screws[$i]['s']);
    ?>
"><?php 
    echo $i + 1;
    ?>
</span></td>
			<td><strong><?php 
    echo get_rotation_number($screws[$i]['t']);
    ?>
 <?php 
    echo get_direction($screws[$i]['s']);
    ?>
</strong></td>
		</tr>
	<?php 
}
Example #13
0
 public function getColor($color, $alfa = 50)
 {
     if (isset($this->colors[$color])) {
         return $this->colors[$color];
     }
     return get_color($this->im, $color, $alfa);
 }
Example #14
0
     if ($person["PRIMARY_ROLE"] == $person["SECONDARY_ROLE"]) {
         $rpoints[2] = $right_edge - $base_width * 11;
         $rpoints[4] = $right_edge - $base_width * 10;
         $rpoints[10] = $right_edge - 3 * $base_width;
         $rpoints[12] = $right_edge - 2 * $base_width;
     }
     /* don't display the outline if the person has no role */
     if ($person["PRIMARY_ROLE"] != "Unknown") {
         $color = get_color($person["PRIMARY_COLOR"]);
         $pdf->setcolor($color[0], $color[1], $color[2]);
         $pdf->polygon($lpoints, 8, 1);
         $color = get_text_color($person["PRIMARY_COLOR"]);
         $pdf->setcolor($color[0], $color[1], $color[2]);
         $role1Width = $pdf->getTextWidth(12, $person["PRIMARY_ROLE"]);
         $pdf->addText($left_edge + $base_width / 2, $top_edge - 12, 12, $person["PRIMARY_ROLE"]);
         $color = get_color($person["SECONDARY_COLOR"]);
         $pdf->setcolor($color[0], $color[1], $color[2]);
         $pdf->polygon($rpoints, 8, 1);
         $color = get_text_color($person["SECONDARY_COLOR"]);
         $pdf->setcolor($color[0], $color[1], $color[2]);
         $role2Width = $pdf->getTextWidth(12, $person["SECONDARY_ROLE"]);
         $pdf->addText($right_edge - $base_width / 2 - $role2Width, $bottom_edge + 6, 12, $person["SECONDARY_ROLE"]);
         $pdf->setcolor(0, 0, 0);
     }
 }
 if ($offsetRow == 0) {
     $offsetRow = 2;
     $pageCount++;
 } else {
     $offsetRow--;
 }
Example #15
0
{
    $text = str_replace('$v', $value, $text);
    $text = str_replace('$t', $total, $text);
    $percentage_shown = round(100 * $fraction);
    if (!empty($display_percent_sign)) {
        $percentage_shown .= get_string('percent_symbol', 'local_elisreports');
    }
    $text = str_replace('$p', $total == 0 ? get_string('na', 'local_elisreports') : $percentage_shown, $text);
    $text = str_replace('$e', $total == 0 ? get_string('na', 'local_elisreports') : '', $text);
    return $text;
}
//determine the colors to use
$color_array = get_color($color, $color_defaults);
$text_color_array = get_color($text_color, $text_color_defaults);
$background_color_array = get_color($background_color, $background_color_defaults);
$border_color_array = get_color($border_color, $border_color_defaults);
//calculate how full the bar should be
if ($total == 0) {
    $fraction = 0;
} else {
    $fraction = $value / $total;
}
//set up the chart
$chart = new pChart($width + 2, $height + 2);
$chart->setGraphArea(0, 0, $width + 1, $height + 1);
//draw the static background
draw_rectangle($chart, 0, 0, $width + 1, $height + 1, $background_color_array);
//draw the bar for our actual value
if ($fraction > 0) {
    draw_rectangle($chart, 0, 0, 1 + round($fraction * $width), $height + 1, $color_array);
}
Example #16
0
    for ($l = 1; $l <= sizeof($queries); $l++) {
        print '<tr>';
        print '<td>' . $queries[$l][0] . '</td>';
        $value = get_score($queries[$l][1]);
        if ($queries[$l][2] == 'date') {
            $date = new DateTime($value);
            $diff = $date->diff($now);
            $formula = 365 * $diff->format("%y") + 30 * $diff->format("%m") + $diff->format("%d");
            print '<td>' . $formula . ' days</td>';
            $formula = $formula - 365;
        } else {
            print '<td>' . $value . '</td>';
            $formula = calculate_string($queries[$l][2] . $value);
        }
        $formula = max(min($formula, 100), -100);
        print '<td align=right><font color=' . get_color($formula) . '>' . $formula . '</font></td>';
        $score += $formula;
        print '</tr>';
    }
    print '<tr><td><b><big>Total score</big></b></td><td colspan=2 align=right><b><big>' . $score . '</big></b></td></tr>';
    $mysqli->close();
    print '</table>';
}
function get_score($query)
{
    global $mysqli;
    $res = $mysqli->query($query);
    if ($res) {
        $res = $res->fetch_assoc();
        if ($res) {
            $res = current($res);
<div class="ibox-content">
<div class="panel-body">

<h5>

    <span > <i style="color:<?php 
echo get_color(1);
?>
;" class="fa fa-square"></i> <=3</span> || <span ><i style="color:<?php 
echo get_color(2);
?>
;" class="fa fa-square"></i>  >3 to <=6</span> || <span ><i  style="color:<?php 
echo get_color(3);
?>
;" class="fa fa-square"></i>  >6 to <=9</span> || <span ><i style="color:<?php 
echo get_color(4);
?>
;" class="fa fa-square"></i>  >9</span>

</h5>

<div class="col-lg-6">
    <div class="col-lg-6">
        <form class="form" method="post" action="<?php 
echo base_url();
?>
">
            <select name="date" class="form-control">
                <option selected>--SELECT PERIOD--</option>

                <?php 
Example #18
0
} else {
    $im = imagecreate($sizeX + $shiftX + 61, $sizeY + $shiftYup + $shiftYdown + 10);
}
$graphtheme = ['theme' => 'blue-theme', 'textcolor' => '1F2C33', 'highlightcolor' => 'E33734', 'backgroundcolor' => 'FFFFFF', 'graphcolor' => 'FFFFFF', 'gridcolor' => 'CCD5D9', 'maingridcolor' => 'ACBBC2', 'gridbordercolor' => 'ACBBC2', 'nonworktimecolor' => 'EBEBEB', 'leftpercentilecolor' => '429E47', 'righttpercentilecolor' => 'E33734'];
$themes = DB::find('graph_theme', ['theme' => getUserTheme(CWebUser::$data)]);
if ($themes) {
    $graphtheme = $themes[0];
}
$black = get_color($im, '000000');
$green = get_color($im, '34AF67');
$red = get_color($im, 'D64E4E');
$grey = get_color($im, '969696', 50);
$backgroundcolor = get_color($im, $graphtheme['backgroundcolor']);
$gridcolor = get_color($im, $graphtheme['gridcolor']);
$textcolor = get_color($im, $graphtheme['textcolor']);
$highlightcolor = get_color($im, $graphtheme['highlightcolor']);
$x = imagesx($im);
$y = imagesy($im);
imagefilledrectangle($im, 0, 0, $x, $y, $backgroundcolor);
$d = zbx_date2str(_x('Y', DATE_FORMAT_CONTEXT));
$str = _s('%1$s (year %2$s)', $service['name'], $d);
$x = imagesx($im) / 2 - imagefontwidth(4) * mb_strlen($str) / 2;
imageText($im, 10, 0, $x, 14, $textcolor, $str);
$now = time(null);
$to_time = $now;
$count_now = [];
$problem = [];
$start = mktime(0, 0, 0, 1, 1, date('Y'));
$wday = date('w', $start);
if ($wday == 0) {
    $wday = 7;
Example #19
0
        $b = hexdec(substr($hex, 4, 2));
    }
    return "rgba({$r}, {$g}, {$b}, {$alpha})";
}
$header_background_color = get_color('hb', '#eeeeee');
$header_text_color = get_color('ht', '#000000');
$header_link_color = get_color('hl', '#00554e');
$content_background_color = get_color('cb', '#ffffff');
$content_text_color = get_color('ct', '#000000');
$content_link_color = get_color('cl', '#00554e');
$sidebar_background_color = get_color('sb', '#ffffff');
$sidebar_text_color = get_color('st', '#000000');
$sidebar_link_color = get_color('sl', '#00554e');
$footer_background_color = get_color('fb', '#444444');
$footer_text_color = get_color('ft', '#ffffff');
$footer_link_color = get_color('fl', '#a1fff6');
?>
/* Header */
#masthead {
  background: <?php 
echo $header_background_color;
?>
;
  color: <?php 
echo $header_text_color;
?>
;
}

#masthead a,
#masthead a:visited {
Example #20
0
					</object>
					</a>
                    
				</div>
				<div class="six push_three columns">
					<button id="mobilemenu">Menu</button>
					<?php 
wp_nav_menu(array('exclude' => 7));
?>
				</div>
			</div>
		</header>
		<?php 
global $post;
if ($post->post_parent == '15') {
    $hcolor = get_color(get_field("text_colour"));
    $hbackground = str_replace(" ", "-", get_field("background_colour"));
    // 	print "color<pre>";
    // 	print_r($hcolor);
    // 	print "</pre>";
    // 	print "background<pre>";
    // 	print_r($hbackground);
    // 	print "</pre>";
    $himage = get_field("head_image");
    if ($himage != "") {
        ?>
				<div class="container imageband <?php 
        echo $hbackground;
        ?>
" >
					<div class="row heading headingimage" style="background-image:url(<?php 
Example #21
0
function generate_badge($badges_lines, $style, $color, $output_badge)
{
    global $Styles, $Colors;
    foreach ($badges_lines as $line) {
        $line->font = $Styles[$style];
    }
    $y = 0;
    foreach ($badges_lines as $line) {
        $line->initiate($line->size, $line->angle, $line->font, $line->value);
        $y += $line->height;
        $line->y = $y;
    }
    $Image = new Text();
    $Image->width = WIDTH;
    $Image->height = $y;
    $img = imagecreatetruecolor($Image->width, $Image->height);
    imagealphablending($img, FALSE);
    imagesavealpha($img, TRUE);
    foreach ($badges_lines as $line) {
        $line->color = imagecolorallocate($img, get_color("r", $Colors[$color]), get_color("g", $Colors[$color]), get_color("b", $Colors[$color]));
    }
    $transparent = imagecolorallocatealpha($img, 255, 255, 255, 127);
    imagefilledrectangle($img, 0, 0, $Image->width, $Image->height, $transparent);
    foreach ($badges_lines as $line) {
        imagettftext($img, $line->size, $line->angle, $line->x, $line->y, $line->color, $line->font, $line->value);
    }
    imagepng($img, $output_badge);
    imagedestroy($img);
}
Example #22
0
            foreach ($stat as $k => $v) {
                if ($k == 'stat_name') {
                    switch ($v) {
                        case 'fire_count':
                            $shots += $stat['value_forever'];
                            break;
                        case 'hit_count':
                            $hit_shots += $stat['value_forever'];
                            break;
                    }
                }
            }
        }
    }
    $accuracy = round($hit_shots / $shots, 2);
    print_r(get_color((double) $accuracy));
    exit;
}
function get_color($value)
{
    $c1 = 15 * $value;
    $c2 = 15 * $value;
    return array($c1, $c2);
    $min = 3840;
    $max = 240;
    $min = "F00";
    $max = "00F";
}
?>
<div id="aa" class="easyui-accordion" data-options="multiple:true">
<div title="General Information" class="accordionpart">
function graph_slurm_user_cores(&$rrdtool_graph)
{
    global $rrd_dir;
    $count = 0;
    exec("/com/extra/slurm/14.03.0/bin/sacctmgr -n show users | awk '{print \$1}'", $users);
    sort($users, SORT_STRING);
    $l = $_GET["legend"];
    if ($l != "hide") {
        $legend = 1;
    } else {
        $legend = 0;
    }
    $series = "";
    $maxlen = 0;
    $limit = 1000;
    $i = 0;
    foreach ($users as $user) {
        $name = str_replace(".", "_", $user);
        if (strlen($user) > $maxlen) {
            $maxlen = strlen($user);
        }
        if (file_exists("{$rrd_dir}/slurm_cores_" . $user . ".rrd")) {
            $series .= "DEF:'" . $name . "'='{$rrd_dir}/slurm_cores_" . $user . ".rrd':'sum':AVERAGE ";
        }
        $i++;
        if ($i == $limit) {
            break;
        }
    }
    $series .= "DEF:'cores'='{$rrd_dir}/slurm_cores_total.rrd':'sum':AVERAGE ";
    $series .= "LINE:'cores'#FF0000:'#Cores' ";
    $series .= "VDEF:'cores_last'='cores',LAST ";
    $series .= "VDEF:'cores_min'='cores',MINIMUM ";
    $series .= "VDEF:'cores_avg'='cores',AVERAGE ";
    $series .= "VDEF:'cores_max'='cores',MAXIMUM ";
    $series .= "GPRINT:'cores_last':'Last\\:%5.2lf%s' ";
    $series .= "GPRINT:'cores_min':'Min\\:%5.2lf%s' ";
    $series .= "GPRINT:'cores_avg':'Avg\\:%5.2lf%s' ";
    $series .= "GPRINT:'cores_max':'Max\\:%5.2lf%s'\\\\c ";
    # Add a line for each user, and an entry for each user if we are displaying the legend.
    $i = 0;
    foreach ($users as $user) {
        $name = str_replace(".", "_", $user);
        if (file_exists("{$rrd_dir}/slurm_cores_" . $user . ".rrd")) {
            if ($i == 0) {
                $series .= "AREA:'" . $name . "'" . get_color($i) . ":'";
            } else {
                $series .= "STACK:'" . $name . "'" . get_color($i) . ":'";
            }
            if ($legend) {
                $series .= sprintf("%" . $maxlen . "s", $user) . "' ";
            } else {
                $series .= "' ";
            }
            $series .= "VDEF:" . $name . "_last=" . $name . ",LAST ";
            $series .= "VDEF:" . $name . "_min=" . $name . ",MINIMUM ";
            $series .= "VDEF:" . $name . "_avg=" . $name . ",AVERAGE ";
            $series .= "VDEF:" . $name . "_max=" . $name . ",MAXIMUM ";
            if ($legend) {
                $series .= "GPRINT:'" . $name . "_last':'Now\\:%5.0lf%s' ";
                $series .= "GPRINT:'" . $name . "_min':'Min\\:%5.0lf%s' ";
                $series .= "GPRINT:'" . $name . "_avg':'Avg\\:%5.0lf%s' ";
                $series .= "GPRINT:'" . $name . "_max':'Max\\:%5.0lf%s'\\\\c ";
            }
        }
        $i++;
    }
    foreach ($users as $user) {
        $name = str_replace(".", "_", $user);
        if (file_exists("{$rrd_dir}/slurm_cores_" . $user . ".rrd")) {
        }
    }
    //required
    $rrdtool_graph['title'] = '-- Slurm Cores per User --';
    $rrdtool_graph['vertical-label'] = 'cores';
    $rrdtool_graph['series'] = $series;
    $rrdtool_graph['lower-limit'] = '0';
    $rrdtool_graph['extras'] = '-R light';
    return $rrdtool_graph;
}
Example #24
0
     //parse cell either selected or not
     $tpl->set_var(array("RESULT" => stripslashes($text), "BGCOLOR" => get_color($header_element[0], $sort_input_id, $item_count)));
     $tpl->parse("RESULT_CELL", "result_cell", true);
 }
 //author name cell
 if ($resultcreator) {
     $tpl->set_var(array("RESULT" => $value["creator_name"], "BGCOLOR" => get_color("creator", $sort_input_id, $item_count)));
     $tpl->parse("RESULT_CELL", "result_cell", true);
 }
 //creation date cell
 if ($resultcreationtime) {
     $tpl->set_var(array("RESULT" => date("H:i d.m.y", $value["OBJ_CREATION_TIME"]), "BGCOLOR" => get_color(OBJ_CREATION_TIME, $sort_input_id, $item_count)));
     $tpl->parse("RESULT_CELL", "result_cell", true);
 }
 //set right color for "details" and maybe "edit"
 $tpl->set_var("BGCOLOR", get_color("", "details", $item_count));
 //if answer is editable parse out proper link
 if ($editanswer && $is_author) {
     $tpl->parse("RESULT_CELL", "edit_cell", true);
 }
 //authors can delete answers
 if ($is_author) {
     $tpl->parse("RESULT_CELL", "delete_cell", true);
 }
 //insert 2 empty cells for analysts, instead of the two icons for delete and edit
 if (!$is_author) {
     $tpl->set_var("RESULT", "");
     $tpl->parse("RESULT_CELL", "result_cell", true);
 }
 //parse row
 $tpl->parse("RESULT_ROW", "result_row", true);
Example #25
0
 */
header('Content-Type: image/svg+xml');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
function get_color($get_name, $default)
{
    // get color from GET args, only alphanumeric chcracters
    $opts = array('options' => array('regexp' => '/^[a-z0-9]+$/i'));
    $color = filter_input(INPUT_GET, $get_name, FILTER_VALIDATE_REGEXP, $opts);
    if (preg_match('/^[a-f0-9]{6}$/', $color)) {
        return '#' . $color;
    }
    return $color ? $color : $default;
}
echo '<?xml version="1.0" ?>';
?>
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" version="1.0" width="100%" height="100%">
    <defs>
        <linearGradient id="linear-gradient" x1="0%" y1="0%" x2="0%" y2="100%">
            <stop offset="0%" stop-color="<?php 
echo get_color('from', 'white');
?>
" stop-opacity="1" />
            <stop offset="100%" stop-color="<?php 
echo get_color('to', 'black');
?>
" stop-opacity="1" />
        </linearGradient>
    </defs>
    <rect width="100%" height="100%" style="fill:url(#linear-gradient);" />
</svg>
Example #26
0
    print "<table border=0 width=100%><td width=5% id=s><b>Options</b></td><td id=s><b>Filename</b></td><td id=s><b>Size</b></td><td id=s><b>Permissions</b></td><td id=s>Last modified</td><tr>";
    if ($handle = opendir('.')) {
        while (false !== ($file = readdir($handle))) {
            if (is_dir($file)) {
                $directories[] = $file;
            } else {
                $files[] = $file;
            }
        }
        asort($directories);
        asort($files);
        foreach ($directories as $file) {
            print "<td id=d><a href=\"?p=rename&file=" . realpath($file) . "&dir=" . realpath('.') . "\">[R]</a><a href=\"?p=delete&file=" . realpath($file) . "\">[D]</a></td><td id=d><a href=\"" . $me . "?dir=" . realpath($file) . "\">" . $file . "</a></td><td id=d></td><td id=d><a href=\"?p=chmod&dir=" . realpath('.') . "&file=" . realpath($file) . "\"><font color=" . get_color($file) . ">" . perm($file) . "</font></a></td><td id=d>" . date("Y/m/d, H:i:s", filemtime($file)) . "</td><tr>";
        }
        foreach ($files as $file) {
            print "<td id=f><a href=\"?p=rename&file=" . realpath($file) . "&dir=" . realpath('.') . "\">[R]</a><a href=\"?p=delete&file=" . realpath($file) . "\">[D]</a></td><td id=f><a href=\"" . $me . "?p=edit&dir=" . realpath('.') . "&file=" . realpath($file) . "\">" . $file . "</a></td><td id=f>" . filesize($file) . "</td><td id=f><a href=\"?p=chmod&dir=" . realpath('.') . "&file=" . realpath($file) . "\"><font color=" . get_color($file) . ">" . perm($file) . "</font></a></td><td id=f>" . date("Y/m/d, H:i:s", filemtime($file)) . "</td><tr>";
        }
    } else {
        print "<u>Error!</u> Can't open <b>" . realpath('.') . "</b>!<br>";
    }
    print "</table><hr><table border=0 width=100%><td><b>Upload file</b><br><form enctype=\"multipart/form-data\" action=\"" . $me . "?dir=" . realpath('.') . "\" method=\"POST\"> \n<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"100000000\" /><input size=30 name=\"uploadedfile\" type=\"file\" /> \n<input type=\"submit\" value=\"Upload File\" /> \n</form></td><td><form action=\"" . $me . "\" method=GET><b>Change Directory<br></b><input type=text size=40 name=dir value=\"" . realpath('.') . "\"><input type=submit value=\"Change Directory\"></form></td> \n<tr><td><form action=\"" . $me . "\" method=GET><b>Create file<br></b><input type=hidden name=dir value=\"" . realpath('.') . "\"><input type=text size=40 name=file value=\"" . realpath('.') . "\"><input type=hidden name=p value=edit><input type=submit value=\"Create file\"></form> \n</td><td><form action=\"" . $me . "\" method=GET><b>Create directory<br></b><input type=text size=40 name=crdir value=\"" . realpath('.') . "\"><input type=hidden name=dir value=\"" . realpath('.') . "\"><input type=hidden name=p value=createdir><input type=submit value=\"Create directory\"></form></td> \n</table>";
}
function login()
{
    print "<table border=0 width=100% height=100%><td valign=\"middle\"><center> \n <form action=" . basename(__FILE__) . " method=\"POST\"><b>Password?</b> \n <input type=\"password\" maxlength=\"32\" name=\"pass\"><input type=\"submit\" value=\"Login\"> \n </form>";
}
function reload()
{
    header("Location: " . basename(__FILE__));
}
function get_execution_method()
Example #27
0
">

                                                                                                                <input type="hidden" class="rowbackgroundcolorinput" name="" value="<?php 
                                        echo get_color($children, 'backgroundcolor');
                                        ?>
">
                                                                                                                <input type="hidden" class="rowtextcolorinput" name="" value="<?php 
                                        echo get_color($children, 'textcolor');
                                        ?>
">
                                                                                                                <input type="hidden" class="rowlinkcolorinput" name="" value="<?php 
                                        echo get_color($children, 'linkcolor');
                                        ?>
">
                                                                                                                <input type="hidden" class="rowlinkhovercolorinput" name="" value="<?php 
                                        echo get_color($children, 'linkhovercolor');
                                        ?>
">
                                                                                                                <input type="hidden" class="rowmargininput" name="" value="<?php 
                                        echo get_value($children, 'margin');
                                        ?>
">
                                                                                                                <input type="hidden" class="rowpaddinginput" name="" value="<?php 
                                        echo get_value($children, 'padding');
                                        ?>
">
                                                                                                            </span>
                                                                                                        </div>
                                                                                                        <div class="pull-right row-tools">
                                                                                                            <a href="" title="Move this row" class="fa fa-arrows rowmove"></a>
                                                                                                            <a href="" title="Add new row" class="fa fa-align-justify add-row"></a>
Example #28
0
                    $db->sql_freeresult($result);
                    $message = $lang['Attribute_Order_Updated'] . '<br /><br />' . sprintf($lang['Click_Return_Attributes_Management'], '<a href="' . $get->url($requester, '', true) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . $get->url('admin/index', array('pane' => 'right'), true) . '">', '</a>');
                    message_die(GENERAL_MESSAGE, $message);
                }
            }
        }
    }
} else {
    /**
     * Show the default page
     */
    $template->set_filenames(array('body' => 'admin/title_list_body.tpl'));
    $sql = 'SELECT * FROM ' . ATTRIBUTES_TABLE . ' ORDER BY attribute_order ASC';
    if (!($result = $db->sql_query($sql))) {
        message_die(GENERAL_ERROR, $lang['Attr_Error_Message_09'], '', __LINE__, __FILE__, $sql);
    }
    $row = $db->sql_fetchrowset($result);
    $row_count = count($row);
    for ($i = 0; $i < $row_count; $i++) {
        $permissions = $row[$i]['attribute_administrator'] ? $lang['Administrator'] . '<br />' : '';
        $permissions .= $row[$i]['attribute_moderator'] ? $lang['Moderator'] . '<br />' : '';
        $permissions .= $row[$i]['attribute_author'] ? $lang['Author'] : '';
        $color = trim($row[$i]['attribute_color']);
        $text = lang_item($row[$i]['attribute']);
        $image = '<img src="' . $phpbb_root_path . image_item($row[$i]['attribute_image']) . '" alt="' . $text . '" title="' . $text . '" />';
        $template->assign_block_vars('attribute', array('ROW_CLASS' => !($i % 2) ? $theme['td_class1'] : $theme['td_class2'], 'ATTRIBUTE' => !$row[$i]['attribute_type'] ? '<span ' . get_color($row[$i]['attribute'], $color) . '>' . $text . '</span>' : $image, 'COLOR' => $row[$i]['attribute_color'] ? '<span ' . get_color($row[$i]['attribute'], $color) . '>' . $color . '</span>' : $lang['Attribute_None'], 'PERMISSIONS' => $permissions, 'DATE_FORMAT' => $row[$i]['attribute_date_format'] ? $row[$i]['attribute_date_format'] : $lang['Attribute_None'], 'POSITION' => !$row[$i]['attribute_position'] ? $lang['Left'] : $lang['Right'], 'U_MOVEUP' => $get->url($requester, array('mode' => 'moveup', 'id' => $row[$i]['attribute_id']), true), 'U_MOVEDW' => $get->url($requester, array('mode' => 'movedw', 'id' => $row[$i]['attribute_id']), true), 'U_EDIT' => $get->url($requester, array('mode' => 'edit', 'id' => $row[$i]['attribute_id']), true), 'U_DELETE' => $get->url($requester, array('mode' => 'delete', 'id' => $row[$i]['attribute_id']), true)));
    }
    $template->assign_vars(array('L_TITLE' => $lang['Attributes_System'], 'L_TITLE_EXPLAIN' => $lang['Attributes_System_Explain'], 'L_ATTRIBUTE' => $lang['Attribute'], 'L_COLOR' => $lang['Attribute_Color'], 'L_PERMISSIONS' => $lang['Attribute_Permissions'], 'L_DATE_FORMAT' => $lang['Date_format'], 'L_POSITION' => $lang['Attribute_Position'], 'L_MOVEUP' => $lang['Move_up'], 'L_MOVEDW' => $lang['Move_down'], 'L_CREATE' => $lang['Create_new'], 'L_ACTION' => $lang['Action'], 'I_MOVEUP' => $phpbb_root_path . $images['cmd_up_arrow'], 'I_MOVEDW' => $phpbb_root_path . $images['cmd_down_arrow'], 'I_DELETE' => $phpbb_root_path . $images['cmd_delete'], 'I_EDIT' => $phpbb_root_path . $images['cmd_edit'], 'I_CREATE' => $phpbb_root_path . $images['cmd_create'], 'U_CREATE' => $get->url($requester, array('mode' => 'add'), true), 'S_ATTR_ACTION' => $get->url($requester)));
}
$template->pparse('body');
include $get->url('admin/page_footer_admin');