• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getIcon函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getIcon函数的典型用法代码示例。如果您正苦于以下问题:PHP getIcon函数的具体用法?PHP getIcon怎么用?PHP getIcon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: display_widget

function display_widget($info)
{
    $widget = array(2 => "display_cam", 4 => "display_lampe", 5 => "display_commande", 7 => "display_warming", 9 => "display_warming", 10 => "display_shutter", 11 => "display_shutter", 15 => "display_audio", 16 => 'display_videoplayer', 17 => "display_audio", 18 => "display_garden", 20 => "display_furnace", 22 => "display_garden", 23 => "display_garden", 24 => "display_warming", 25 => "display_fan", 28 => "display_spa", 30 => "display_alarm", 31 => "display_portal", 33 => "display_furnace", 35 => 'display_webpage_internal', 37 => 'display_webpage_external', 38 => "display_commande", 43 => "display_commande", 47 => "display_consumption", 49 => "display_warming", 50 => "display_audio", 51 => "display_commande", 52 => "display_portal", 54 => "display_portal", 60 => "display_commande", 61 => "display_commande", 68 => "display_clim", 85 => "display_lampe", 86 => 'display_generic');
    $widgeticon = 'fa fa-question';
    if (!empty(getIcon($info->device_id))) {
        $widgeticon = getIcon($info->device_id);
    }
    $dir = '/templates/default/custom/device/';
    $display = '<div class="display-widget col-xs-12 col-sm-6 col-lg-4 room-' . $info->room_id . ' app-' . $info->application_id . '">
					<div class="box">
						<div class="icon">
							<div id="image-widget-' . $info->room_device_id . '" class="image">
								<i id="icon-image-widget-' . $info->room_device_id . '" class="' . $widgeticon . '"></i>
							</div>
							<div class="info col-sm-12 col-xs-12 widget-content">';
    //display device
    if (!empty($widget[$info->device_id])) {
        $display .= $widget[$info->device_id]($info);
    }
    $display .= '
							</div>';
    if (!empty($info->device_bgimg)) {
        $display .= '
								<div class="info-bg"
								     style="background-image: url(\'' . $dir . $info->device_bgimg . '\')">
								</div>';
    }
    $display .= '
						</div>
					</div>
				</div>';
    return $display;
}
开发者ID:bonion,项目名称:Domoleaf,代码行数:33,代码来源:display_widget.php


示例2: parserArray

function parserArray($array_xml)
{
    $_level_key_name = $_SESSION['_level_key_name'];
    $image_url = "../../pixmaps/theme/";
    foreach ($array_xml as $key => $value) {
        $size = count($array_xml);
        if (is_array($value) && !isset($value['@attributes']) && $key !== '@attributes') {
            $json .= parserArray($value, '');
            continue;
        } elseif (is_array($value) && isset($value['@attributes'])) {
            $icon = $image_url . getIcon($key, $value);
            $title = getTitle($key, $value);
            $json .= "{title: '{$title}', addClass: 'size10', key:'" . $value['@attributes'][$_level_key_name] . "', isFolder:'true', icon:'{$icon}'";
            $aux = parserArray($value);
            $json .= !empty($aux) ? ", children:  [" . $aux . "]" : '';
            $json .= "},\n";
        } elseif (is_array($value) && $key === '@attributes') {
            $keys = array_keys($value);
            if (!(count($keys) == 1 && $keys[0] == $_level_key_name)) {
                $json .= "{title: '<span>" . _("Attributes") . "</span>', addClass: 'size10', key:'attr_" . $value[$_level_key_name] . "', icon:'" . $image_url . "gear-small.png', children: [";
                foreach ($value as $k => $v) {
                    if ($k !== $_level_key_name) {
                        $json .= "{title: '<span>" . clean_string($k) . "</span>=" . clean_string($v) . "', addClass: 'size10', key:'" . $value[$_level_key_name] . "', icon:'" . $image_url . "ticket-small.png'},\n";
                    }
                }
                $json = preg_replace('/,$/', '', $json);
                $json .= "]";
                $json .= "},\n";
            }
        }
    }
    return $json;
}
开发者ID:jhbsz,项目名称:ossimTest,代码行数:33,代码来源:utils.php


示例3: isset

						</td>
					</tr>
					<?php 
    } else {
        $reason = isset($data->motif) ? $data->motif : "Aucun motif fourni.";
        $reason = preg_replace("#(^|[\n ])([\\w]+?://[\\w\\#\$%&~/.\\-;:=,?@\\[\\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\" rel=\"nofollow\">\\2</a>", $reason);
        $reason = preg_replace("#(^|[\n ])((www|ftp)\\.[\\w\\#\$%&~/.\\-;:=,?@\\[\\]+]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\" rel=\"nofollow\">\\2</a>", $reason);
        ?>
					<tr>
						<td <?php 
        if (!isset($data->duration)) {
            echo 'colspan="2" style="text-align: center;"';
        }
        ?>
><?php 
        echo getIcon($data->type);
        ?>
 <?php 
        echo $data->type;
        ?>
</td>
						<?php 
        if (isset($data->duration)) {
            ?>
<td><?php 
            echo $data->duration;
            ?>
</td><?php 
        }
        ?>
						<td><?php 
开发者ID:BridgeAPIs,项目名称:PlayerTracker,代码行数:31,代码来源:results.php


示例4: rawurlencode

                    ?>
?getimage=blank" alt="" width="7" height="16" style="vertical-align:middle;"/>
					<?php 
                } else {
                    ?>
						<a href="<?php 
                    echo $PHP_SELF;
                    ?>
?path=<?php 
                    echo rawurlencode($path);
                    ?>
&amp;download=<?php 
                    echo rawurlencode($files[$i]["name"]);
                    ?>
"><img src="<?php 
                    echo getIcon("download");
                    ?>
" alt="<?php 
                    echo translate("download");
                    ?>
" title="<?php 
                    echo translate("download");
                    ?>
" width="7" height="16" style="vertical-align:middle;"/></a>
					<?php 
                }
                echo "</td>";
                break;
            case "icon":
                echo "<td class=\"littlepadding\">";
                ?>
开发者ID:stsquad,项目名称:CODEF,代码行数:31,代码来源:index.php


示例5: getBoxStructure

/**
* Recursively iterates a mailboxes object to build a data structure that is
* easy for template authors to work with.
FIXME: well.... why not document that data structure here?
* 
* @param object $boxes Object of the class mailboxes
* @author Steve Brown
* @since 1.5.2
*/
function getBoxStructure($boxes)
{
    global $data_dir, $username, $icon_theme_path;
    // Stop condition
    if (empty($boxes)) {
        return array();
    }
    $mailbox = $boxes->mailboxname_full;
    $mailboxURL = urlencode($mailbox);
    $box = array();
    $box['MailboxFullName'] = $mailbox;
    $box['MailboxName'] = $boxes->mailboxname_sub;
    $box['MessageCount'] = !empty($boxes->total) ? $boxes->total : 0;
    $box['UnreadCount'] = !empty($boxes->unseen) ? $boxes->unseen : 0;
    // Needed in case user enables cummulative message counts
    $box['CummulativeMessageCount'] = getMessageCount($boxes, 'total');
    $box['CummulativeUnreadCount'] = getMessageCount($boxes, 'unseen');
    $box['ViewLink'] = array('Target' => 'right', 'URL' => 'right_main.php?PG_SHOWALL=0&amp;startMessage=1&amp;mailbox=' . $mailboxURL);
    $box['IsRecent'] = isset($boxes->recent) && $boxes->recent;
    $box['IsSpecial'] = isset($boxes->is_special) && $boxes->is_special;
    $box['IsRoot'] = isset($boxes->is_root) && $boxes->is_root;
    $box['IsNoSelect'] = isset($boxes->is_noselect) && $boxes->is_noselect;
    $box['IsInbox'] = isset($boxes->is_inbox) && $boxes->is_inbox;
    $box['IsSent'] = isset($boxes->is_sent) && $boxes->is_sent;
    $box['IsTrash'] = isset($boxes->is_trash) && $boxes->is_trash;
    $box['IsDraft'] = isset($boxes->is_draft) && $boxes->is_draft;
    $box['IsNoInferiors'] = isset($boxes->is_noinferiors) && $boxes->is_noinferiors;
    $collapse = getPref($data_dir, $username, 'collapse_folder_' . $mailbox);
    $collapse = $collapse == '' ? SM_BOX_UNCOLLAPSED : $collapse;
    $collapse = (int) $collapse == SM_BOX_COLLAPSED;
    $box['IsCollapsed'] = $collapse;
    /*
     * Check for an image needed here.  If the file exists in $icon_theme_path
     * assume the template provides all icons.  If not, we will use the 
     * SQM default images.  If icons have been disabled, $icon_theme_path
     * will be NULL.
     */
    $text_icon = $box['IsCollapsed'] ? '+' : '-';
    $icon_file = $box['IsCollapsed'] ? 'plus.png' : 'minus.png';
    $icon_alt = $box['IsCollapsed'] ? 'Expand Box' : 'Collapse Box';
    $icon = getIcon($icon_theme_path, $icon_file, $text_icon, $icon_alt);
    $box['CollapseLink'] = array('Target' => 'left', 'URL' => 'left_main.php?' . ($box['IsCollapsed'] ? 'unfold' : 'fold') . '=' . $mailboxURL, 'Icon' => $icon . '&nbsp;');
    $box['ChildBoxes'] = array();
    for ($i = 0; $i < count($boxes->mbxs); $i++) {
        $box['ChildBoxes'][] = getBoxStructure($boxes->mbxs[$i]);
    }
    // if plugins want to add some text or link after the folder name in
    // the folder list, they should add to the "ExtraOutput" array element
    // in $box (remember, it's passed through the hook by reference) -- making
    // sure to play nice with other plugins by *concatenating* to "ExtraOutput"
    // and NOT by overwriting it
    //
    // known users of this hook:
    // empty_folders
    //
    do_hook('left_main_after_each_folder', $box);
    return $box;
}
开发者ID:teammember8,项目名称:roundcube,代码行数:67,代码来源:folder_list_util.php


示例6: img

<?
for ($i = $args['start']; $i < $args['end']; $i++)
{
	$object = $args['objects'][$i];
	?>
	<div class="sub_title">
		<a class="right" href="javascript:void(null)" onclick="toggleSidebarContainer('<?php 
echo $object->getNodeId();
?>
')"><?php 
echo img(imgpath("1downarrow.png"), "", "", $object->getNodeId() . "_arrow");
?>
</a>
		<?php 
echo cmd(img(getIcon($object->getIcon())) . "&nbsp;" . $object->getName(), "exec=show&node_id=" . $object->getNodeId());
?>
		<div class="clear"></div>
	</div>
	<div id="<?php 
echo $object->getNodeId();
?>
_container">
		<?php 
echo compiletpl("scripts/show/data", array(), $object);
?>
		<?php 
echo compiletpl("scripts/show/children", array(), $object);
?>
	</div>
<?
}
开发者ID:BackupTheBerlios,项目名称:murrix-svn,代码行数:31,代码来源:children-sub.php


示例7: foreach

        echo $AppUI->_('Size');
        ?>
</th>
		<th nowrap="nowrap"><?php 
        echo $AppUI->_('Type');
        ?>
</th>
		<th nowrap="nowrap"><?php 
        echo $AppUI->_('Date');
        ?>
</th>
	</tr>
<?php 
        foreach ($file_versions as $file) {
            if ($file['file_version_id'] == $latest_file['file_version_id']) {
                $file_icon = getIcon($file['file_type']);
                $hdate = new Date($file['file_date']);
                ?>
	<tr>
		<td nowrap="nowrap" width="20">&nbsp;<?php 
                if ($canEdit && $dPconfig['files_show_versions_edit']) {
                    ?>
			<a href="./index.php?m=files&amp;a=addedit&amp;file_id=<?php 
                    echo $file['file_id'];
                    ?>
">
			<?php 
                    echo dPshowImage(DP_BASE_URL . '/modules/files/images/kedit.png', '16', '16', 'edit file', 'edit file');
                    ?>
			</a><?php 
                }
开发者ID:hightechcompany,项目名称:dotproject,代码行数:31,代码来源:index_table.php


示例8: getIcon

<?php

/**
 * Copyright (C) 2011 Ulteo SAS
 * http://www.ulteo.com
 * Author Julien LANGLOIS <[email protected]>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 **/
require_once 'config.inc.php';
require_once 'functions.inc.php';
if (!array_key_exists('id', $_REQUEST)) {
    die;
}
$icon = getIcon($_REQUEST['id']);
header('Content-Type: ' . $icon['content_type']);
die($icon['data']);
开发者ID:bloveing,项目名称:openulteo,代码行数:29,代码来源:icon.php


示例9: explode

    }
    //BACK BUTTON
    if (strpos($c, '..') !== false) {
        $n_link = explode("/", $redir);
        array_pop($n_link);
        array_pop($n_link);
        $n_link = implode($n_link, "/");
        $n_link = rtrim($n_link, '/') . '/';
        if (!empty($n_link)) {
            $create_link = $now . "?redir=" . $n_link;
        } else {
            $create_link = $now;
        }
        $create_link = str_replace(" ", "%20", $create_link);
        $goto = "goto('{$create_link}')";
        echo "<div data-mylink = {$create_link} ondblclick= {$goto} class='file'><div class='icon' style='background-image:url(design/images/back_ico.png);'></div><span class='file_data'> {$c} </span></div></br>";
        continue;
    }
    //FILES
    $current_link = str_replace(" ", "%20", $current_link);
    $goto = "goto('{$current_link}')";
    $add = getIcon($current_link);
    echo "<div data-mylink = {$current_link} ondblclick= {$goto} class='file'><div class='icon' {$add}></div><span class='file_data'> {$c} </span></div></br>";
}
echo "</br><div class='btn_download' onclick='downloadSelected()'>Download</div>";
echo "</div>";
echo "<iframe id='my_iframe' style='display:none;'></iframe>";
?>
</body>
</html>
开发者ID:Borisas,项目名称:home-web-server,代码行数:30,代码来源:index.php


示例10: responsive_map_shortcode

/**
 * Define the shortcode: [res_map] and its attributes
 */
function responsive_map_shortcode($atts)
{
    // Extract the attributes user gave in the shortcode
    $atts = shortcode_atts(array('width' => '', 'height' => '500px', 'maptype' => 'roadmap', 'zoom' => 14, 'address' => 'usa', 'description' => '', 'popup' => 'false', 'pancontrol' => 'false', 'zoomcontrol' => 'false', 'draggable' => 'true', 'scrollwheel' => 'false', 'typecontrol' => 'false', 'scalecontrol' => 'false', 'streetcontrol' => 'false', 'directionstext' => '', 'center' => '', 'icon' => 'green', 'color' => '', 'refresh' => 'false'), $atts);
    // Enque the neccessary jquery files
    wp_enqueue_script("jquery");
    wp_enqueue_script('geogooglemap');
    wp_enqueue_script('jquerygmap');
    // Generate an unique identifier for the map
    $mapid = rand();
    // Extract the map type
    $atts['maptype'] = strtoupper($atts['maptype']);
    // If width or height were specified in the shortcode, extract them too
    $dimensions = 'height:' . $atts['height'];
    if ($atts['width']) {
        $dimensions .= ';width:' . $atts['width'];
    }
    // If color is not set, show the default map style. If color is set to 'bw' show black&white map. Otherwise, if color given, set the map color to the given color.
    if (isset($atts['color']) && $atts['color'] == 'bw') {
        $style = '[ { "stylers": [ { "featureType": "all" }, { "saturation": -100 }, { "gamma": 0.50 }, {"lightness": 30 } ] } ]';
    } else {
        if (isset($atts['color']) && $atts['color'] == 'classic') {
            $style = '[]';
        } else {
            $style = '[ { "stylers": [ { "hue": "' . $atts['color'] . '" } ] } ]';
        }
    }
    // Clean the html code in the directionstext or set the default value if directionstext was not specified in the shortcode
    if (isset($atts['directionstext']) && strlen(trim($atts['directionstext'])) != 0) {
        $atts['directionstext'] = $atts['directionstext'];
    }
    // Extract the langitude and longitude for the map center
    if (trim($atts['center']) != "") {
        sscanf($atts['center'], '%f, %f', $lat, $long);
    } else {
        $lat = 'null';
        $long = 'null';
    }
    // Split the addresses and descriptions (by | delimiter) and build markers JSON list
    if ($atts['address'] != '') {
        $addresses = explode("|", $atts['address']);
        $descriptions = explode("|", $atts['description']);
        $icons = explode("|", $atts['icon']);
        // Build a marker for each address
        $markers = '[';
        for ($i = 0; $i < count($addresses); $i++) {
            $address = cleanHtml($addresses[$i]);
            // If multiple markers, hide popup, else show popup according to parameter from shortcode
            if (count($addresses) > 1) {
                $atts['popup'] = "no";
            }
            // if it's empty, set the default description equal to the the address
            if (isset($descriptions[$i]) && strlen(trim($descriptions[$i])) != 0) {
                $html = $descriptions[$i];
            } else {
                $html = $address;
            }
            // Add the directions link to the description
            $directions = 'http://maps.google.com/?daddr=' . urlencode($address);
            $html .= '<strong><br><a target=\'_blank\' href="' . $directions . '">' . $atts['directionstext'] . '</a></strong>';
            // Prepare the description html
            $html = cleanHtml($html);
            // Get the correct icon image based on icon color/url given in the shortcode
            $icon = getIcon($icons[$i]);
            // Extract the langitude and longitude for the map center
            $marker_latitude = null;
            $marker_longitude = null;
            if (trim($address) != "") {
                sscanf($address, '%f, %f', $marker_latitude, $marker_longitude);
            }
            // If more markers, add the neccessary "," delimiter between markers
            if ($i > 0) {
                $markers .= ",";
            }
            // Build markers list based on given address or latitude/longitude
            if ($marker_latitude == '' || $marker_longitude == '') {
                $markers .= '{
                    address: \'' . $address . '\', 
                    html:\'' . $html . '\',
                    popup: ' . toBool($atts['popup']) . ',
                    flat: true,
                    icon: {
                        image: \'' . $icon . '\',
                        iconsize: [50, 50],
                        iconanchor: null,
                        shadow: \'' . plugins_url('/includes/icons/shadow.png', __FILE__) . '\',
                        shadowsize: [50, 50],
                        shadowanchor: null}}';
            } else {
                $markers .= '{
                    latitude:' . $marker_latitude . ', 
                    longitude:' . $marker_longitude . ', 
                    html:"' . $html . '",
                    popup: ' . toBool($atts['popup']) . ',
                    flat: true,
                    icon: {
                        image: \'' . $icon . '\',
//.........这里部分代码省略.........
开发者ID:namnguyen2312,项目名称:spa,代码行数:101,代码来源:responsive-styled-google-maps.php


示例11: foreach

				</div>
				<ul id="roomList-' . $floor->floor_id . '" hidden="hidden" class="nav">';
    foreach ($floor->room as $room) {
        echo '
							<div id="room-' . $room->room_id . '" class="">
								<div href="#" onclick="ShowDeviceList(' . $room->room_id . ')" class="box-scenar-rooms cursor">
									' . $room->room_name . '
								</div>
								<ul id="deviceList-' . $room->room_id . '" hidden class="nav">';
        foreach ($room->devices as $device) {
            echo '
										<li class="list-item">
											<div href="#" id="device-' . $device->room_device_id . '"
												 class="box-scenar-devices cursor"
												 onclick="selectDevice(' . $id_trigger . ',' . $device->room_device_id . ')">
												<i class="margin-right ' . getIcon($device->device_id) . '"></i>
												' . $device->name . '
											</div>
											<ul id="optionList-' . $device->room_device_id . '" hidden="hidden" class="nav"></ul>
										</li>';
        }
        echo '
								</ul>
							</div>';
    }
    echo '
				</ul>
			</div>';
}
echo '</div>
	</div>';
开发者ID:bonion,项目名称:Domoleaf,代码行数:31,代码来源:profile_user_trigger_events_edit.php


示例12: getAttachmentIcon

/**
 * Function to retrieve correct attchment icon based on user prefs
 * 
 * @param boolean $attach TRUE if the message has an attachment
 * @param string $icon_theme_path path to user's currently selected icon theme.
 * @return string $icon full HTML img tag or text icon, depending on of user prefs
 * @author Steve Brown
 */
function getAttachmentIcon($attach, $icon_theme_path)
{
    $icon = '';
    $icon_file = $attach ? 'attach.png' : 'transparent.png';
    $alt_text = $attach ? _("Attachment") : _("No attachment");
    $text = $attach ? '+' : '';
    $icon = getIcon($icon_theme_path, $icon_file, $text, $alt_text);
    return $icon;
}
开发者ID:teammember8,项目名称:roundcube,代码行数:17,代码来源:message_list_util.php


示例13: addHintIcon

function addHintIcon()
{
    $question_icon = getIcon('question', 'icon_inform');
    return '<span class="mini_btn">' . $question_icon . '</span>';
}
开发者ID:rhyeen,项目名称:WebFormGenerator,代码行数:5,代码来源:create_helper.php


示例14: array

    $request->add_request('getTriggerElems', array($_GET['id_trigger']));
    $result = $request->send_request();
    $trigger_info = $result->getTriggerElems;
    echo '
		<div id="listTriggerElems" class="listTrigger">
			<div id="triggerElemDrop-0" class="col-xs-12 triggerElemDrop">
			</div>';
    if (!empty($trigger_info)) {
        $count = 0;
        foreach ($trigger_info as $elem) {
            echo '
					<div class="col-xs-5 triggerElem">
						<div id="triggerElem-' . $elem->condition_id . '" class="">';
            echo '
							<div class="center trigger-device-name">
								<i class="' . getIcon($elem->device_id) . '"></i>
								' . $elem->device_name . '
							</div>
							<div id="triggerElemOption-' . $elem->condition_id . '" class="center">';
            echo display_option($elem->condition_id, $elem->option_id, $elem->option_value, $elem->room_device_id, $elem->operator);
            echo '
							</div>
						</div>';
            echo displayBtns($elem->trigger_id, $elem->condition_id, $elem->room_device_id, $elem->option_id);
            echo '</div>';
            if ($count % 2 == 1 || $elem === end($trigger_info)) {
                echo '<div id="triggerElemDrop-' . $elem->condition_id . '" class="col-xs-12 triggerElemDrop">
							</div>';
            } else {
                echo '<div id="triggerElemDrop-' . $elem->condition_id . '" class="col-xs-2 triggerElemDrop">
							</div>';
开发者ID:bonion,项目名称:Domoleaf,代码行数:31,代码来源:form_display_trigger.php


示例15: detail

function detail()
{
    global $s, $inp, $par, $tab, $arrTitle, $fFile, $dFile, $arrParameter, $menuAccess;
    $sql = "select * from dta_supplier where kodeSupplier='{$par['kodeSupplier']}'";
    $res = db($sql);
    $r = mysql_fetch_array($res);
    if (empty($r[kodeTipe])) {
        $r[kodeTipe] = $par[kodeTipe];
    }
    if ($r[statusSupplier] == "p") {
        $statusSupplier = "Prospect";
    } else {
        if ($r[statusSupplier] == "t") {
            $statusSupplier = "Active";
        } else {
            $statusSupplier = "Not Active";
        }
    }
    $dAddress = " style=\"display: none;\"";
    $dProduct = " style=\"display: none;\"";
    $dIdentity = " style=\"display: none;\"";
    $dContact = " style=\"display: none;\"";
    $dBanking = " style=\"display: none;\"";
    $dGeneral = " style=\"display: none;\"";
    if ($tab == 1) {
        $tAddress = "class=\"current\"";
        $dAddress = " style=\"display: block;\"";
    } else {
        if ($tab == 2) {
            $tProduct = "class=\"current\"";
            $dProduct = " style=\"display: block;\"";
        } else {
            if ($tab == 3) {
                $tIdentity = "class=\"current\"";
                $dIdentity = " style=\"display: block;\"";
            } else {
                if ($tab == 4) {
                    $tContact = "class=\"current\"";
                    $dContact = " style=\"display: block;\"";
                } else {
                    if ($tab == 5) {
                        $tBanking = "class=\"current\"";
                        $dBanking = " style=\"display: block;\"";
                    } else {
                        $tGeneral = "class=\"current\"";
                        $dGeneral = " style=\"display: block;\"";
                    }
                }
            }
        }
    }
    $text .= "<div class=\"pageheader\">\n\t<h1 class=\"pagetitle\">" . $arrTitle[$s] . "</h1>\n\t" . getBread(ucwords("detail data")) . "\n\t<ul class=\"hornav\">\n\t\t<li {$tGeneral}><a href=\"#general\">General</a></li>\n\t\t<li {$tAddress}><a href=\"#address\">Address</a></li>\n\t\t<li {$tProduct}><a href=\"#product\">Product</a></li>\n\t\t<li {$tIdentity}><a href=\"#identity\">Identity</a></li>\n\t\t<li {$tContact}><a href=\"#contact\">Contact</a></li>\n\t\t<li {$tBanking}><a href=\"#banking\">Banking</a></li>\n\t</div>\n\t<div id=\"contentwrapper\" class=\"contentwrapper\">\n\t\t<form id=\"form\" name=\"form\" method=\"post\" class=\"stdform\" action=\"?_submit=1" . getPar($par) . "\" onsubmit=\"return validation(document.form);\" enctype=\"multipart/form-data\">\n\t\t\t<div style=\"top:70px; right:35px; position:absolute\">\n\t\t\t\t<input type=\"button\" class=\"cancel radius2\" style=\"float:right;\" value=\"Back\" onclick=\"window.location='?" . getPar($par, "mode, kodeSupplier") . "';\"/>\n\t\t\t</div>";
    # TAB GENERAL
    $text .= "<div id=\"general\" class=\"subcontent\" {$dGeneral} >\t\t\t\t\t\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">No Akun</label>\n\t\t\t\t<span class=\"field\">{$r['nomorSupplier']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">Nama Supplier</label>\n\t\t\t\t<span class=\"field\">{$r['namaSupplier']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">Alias</label>\n\t\t\t\t<span class=\"field\">{$r['aliasSupplier']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">Logo</label>\n\t\t\t\t<div class=\"field\">";
    $text .= empty($r[logoSupplier]) ? "" : "<img src=\"" . $fFile . "/" . $r[logoSupplier] . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\">\n\t\t\t\t\t<br clear=\"all\">";
    $text .= "</div>\n\t\t\t\t</p>\n\t\t\t\t<p>\n\t\t\t\t\t<label class=\"l-input-small\">Alamat</label>\n\t\t\t\t\t<span class=\"field\">" . nl2br($r[alamatSupplier]) . "&nbsp;</span>\n\t\t\t\t</p>\n\t\t\t\t<table style=\"width:100%\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td style=\"width:50%\">\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Propinsi</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">" . getField("select namaData from mst_data where kodeData='{$r['kodePropinsi']}'") . "&nbsp;</span>\n\t\t\t\t\t\t\t</p>\t\t\t\t\t\t\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Telepon</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$r['teleponSupplier']}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Email</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$r['emailSupplier']}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Status</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$statusSupplier}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td style=\"width:50%\">\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Kota</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">" . getField("select namaData from mst_data where kodeData='{$r['kodeKota']}'") . "&nbsp;</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Fax</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$r['faxSupplier']}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Website</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$r['webSupplier']}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\t\t\t\t\t\t\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t</div>";
    # TAB ADDRESS
    $text .= "<div id=\"address\" class=\"subcontent\" {$dAddress} >\n\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"stdtable stdtablequick\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th width=\"20\">No.</th>\n\t\t\t\t\t\t<th width=\"200\">Kategori</th>\t<th>Alamat</th>\n\t\t\t\t\t\t<th width=\"200\">Kota</th>\t<th width=\"150\">Telepon</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>";
    $sql = "select * from dta_supplier_address t1 join mst_data t2 on (t1.kodeKota=t2.kodeData) where t1.kodeSupplier='{$par['kodeSupplier']}' order by t1.kodeAddress";
    $res = db($sql);
    $no = 1;
    while ($r = mysql_fetch_array($res)) {
        $text .= "<tr>\n\t\t\t\t\t\t<td>{$no}.</td>\n\t\t\t\t\t\t<td>{$r['kategoriAddress']}</td>\n\t\t\t\t\t\t<td>{$r['alamatAddress']}</td>\n\t\t\t\t\t\t<td>{$r['namaData']}</td>\n\t\t\t\t\t\t<td>{$r['teleponAddress']}</td>\n\t\t\t\t\t</tr>";
        $no++;
    }
    if ($no == 1) {
        $text .= "<tr>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t</tr>";
    }
    $text .= "</tbody>\n\t\t</table>\n\t</div>";
    # TAB PRODUCT
    $text .= "<div id=\"product\" class=\"subcontent\" {$dProduct} >\n\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"stdtable stdtablequick\">\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<th width=\"20\">No.</th>\n\t\t\t\t<th>Product</th>\n\t\t\t\t<th width=\"125\">Harga</th>\n\t\t\t\t<th width=\"50\">File</th>\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody>";
    $sql = "select * from dta_supplier_produk t1 join dta_produk_kategori t2 on (t1.kodeProduk=t2.kodeProduk and t1.kodeKategori=t2.kodeKategori) where t1.kodeSupplier='{$par['kodeSupplier']}' order by t1.kodeProduk, t1.kodeKategori";
    $res = db($sql);
    $no = 1;
    while ($r = mysql_fetch_array($res)) {
        $text .= "<tr>\n\t\t\t\t<td>{$no}.</td>\n\t\t\t\t<td>{$r['tipeKategori']} -- {$r['namaKategori']}</td>\n\t\t\t\t<td align=\"right\">" . getAngka($r[hargaProduk]) . "</td>\n\t\t\t\t<td align=\"center\">";
        if (!empty($r[fileProduk])) {
            $text .= "<a href=\"download.php?d=supp&f=" . $r[kodeSupplier] . "." . $r[kodeProduk] . "." . $r[kodeKategori] . "\"><img src=\"" . getIcon($dFile . "/" . $r[fileProduk]) . "\" style=\"padding-right:5px; padding-bottom:5px;\"></a>";
        }
        $text .= "</td>\n\t\t\t\t</tr>";
        $no++;
    }
    if ($no == 1) {
        $text .= "<tr>\n\t\t\t\t<td>&nbsp;</td>\t\t\t\t\t\t\t\t\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t</tr>";
    }
    $text .= "</tbody>\n\t</table>\n</div>";
    # TAB IDENTITY
    $sql = "select * from dta_supplier_identity where kodeSupplier='{$par['kodeSupplier']}'";
    $res = db($sql);
    $r = mysql_fetch_array($res);
    $text .= "<div id=\"identity\" class=\"subcontent\" {$dIdentity} >\n<table width=\"100%\">\n\t<tr>\n\t\t<td width=\"50%\" nowrap=\"nowrap\" style=\"vertical-align:top\">\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">SIUP</label>\n\t\t\t\t<span class=\"field\">{$r['siupIdentity']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">TDP</label>\n\t\t\t\t<span class=\"field\">{$r['tdpIdentity']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">ID</label>\n\t\t\t\t<span class=\"field\">{$r['idIdentity']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">NPWP</label>\n\t\t\t\t<span class=\"field\">{$r['npwpIdentity']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">Alamat</label>\n\t\t\t\t<span class=\"field\">" . nl2br($r[alamatIdentity]) . "&nbsp;</span>\n\t\t\t</p>\n\t\t</td>\n\t\t<td width=\"50%\" nowrap=\"nowrap\" style=\"vertical-align:top\">\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">File</label>\n\t\t\t\t<div class=\"field\">";
    $text .= empty($r[siupIdentity_file]) ? "" : "<a href=\"download.php?d=sup&f=siup.{$r['kodeSupplier']}\"><img src=\"" . getIcon($dFile . "/" . $r[siupIdentity_file]) . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\"></a>";
    $text .= "</div>\n\t\t\t\t</p>\n\t\t\t\t<p>\n\t\t\t\t\t<label class=\"l-input-small\">File</label>\n\t\t\t\t\t<div class=\"field\">";
    $text .= empty($r[tdpIdentity_file]) ? "" : "<a href=\"download.php?d=sup&f=tdp.{$r['kodeSupplier']}\"><img src=\"" . getIcon($dFile . "/" . $r[tdpIdentity_file]) . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\"></a>";
    $text .= "</div>\n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<label class=\"l-input-small\">File</label>\n\t\t\t\t\t\t<div class=\"field\">";
    $text .= empty($r[idIdentity_file]) ? "" : "<a href=\"download.php?d=sup&f=id.{$r['kodeSupplier']}\"><img src=\"" . getIcon($dFile . "/" . $r[idIdentity_file]) . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\"></a>";
    $text .= "</div>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<label class=\"l-input-small\">File</label>\n\t\t\t\t\t\t\t<div class=\"field\">";
    $text .= empty($r[npwpIdentity_file]) ? "" : "<a href=\"download.php?d=sup&f=id.{$r['kodeSupplier']}\"><img src=\"" . getIcon($dFile . "/" . $r[npwpIdentity_file]) . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\"></a>";
    $text .= "</div>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</div>";
    # TAB CONTACT
//.........这里部分代码省略.........
开发者ID:AuliaYF,项目名称:hoffmen,代码行数:101,代码来源:dta_supplier.php


示例16: explode

                    echo "Skipping {$currentSpell}, already converted as #{$durability}, new id#{$currentDurability}\n";
                    $iconMap[$currentDurability] = $currentSpell;
                    $currentSpell = null;
                    $outputFile .= $iconIndent . "icon: {$iconType}:{$currentDurability}\n";
                    $currentSpellConfig = $currentSpellConfigNoIcon;
                    $currentDurability++;
                    continue;
                }
            }
            if (strpos($currentIcon, ':http') !== FALSE) {
                $pieces = explode(':', $currentIcon, 2);
                $currentURL = $pieces[1];
            }
            if ($currentURL != null) {
                echo "Converting {$currentSpell}\n";
                $outputFile .= getIcon($currentSpell, $currentURL, $iconIndent);
                $outputFile .= $currentSpellConfigNoIcon;
                $currentSpellConfig = '';
                $currentSpell = null;
            }
            continue;
        }
        $currentSpellConfigNoIcon .= $line;
    }
    $outputFile .= $currentSpellConfig;
    fclose($handle);
} else {
    die("Error opening file: {$spellConfig}\n");
}
file_put_contents($spellConfigOut, $outputFile);
echo "Wrote config to {$spellConfigOut}\n";
开发者ID:S-Toad,项目名称:MagicPlugin,代码行数:31,代码来源:rpicons.php


示例17: foreach


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getId函数代码示例发布时间:2022-05-15
下一篇:
PHP getIVal函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap