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


PHP PMA_Util::getImage方法代码示例

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


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

示例1: getDisplay

 /**
  * Renders the navigation
  *
  * @return String HTML
  */
 public function getDisplay()
 {
     if (empty($GLOBALS['url_query'])) {
         $GLOBALS['url_query'] = PMA_URL_getCommon();
     }
     $link_url = PMA_URL_getCommon(array('ajax_request' => true));
     $class = ' class="list_container';
     if ($GLOBALS['cfg']['NavigationLinkWithMainPanel']) {
         $class .= ' synced';
     }
     if ($GLOBALS['cfg']['NavigationTreePointerEnable']) {
         $class .= ' highlight';
     }
     $class .= '"';
     $buffer = '<div id="pma_navigation">';
     $buffer .= '<div id="pma_navigation_resizer"></div>';
     $buffer .= '<div id="pma_navigation_collapser"></div>';
     $buffer .= '<div id="pma_navigation_content">';
     $buffer .= '<div id="pma_navigation_header">';
     $buffer .= sprintf('<a class="hide navigation_url" href="navigation.php%s"></a>', $link_url);
     $buffer .= $this->_logo();
     $buffer .= $this->_links();
     $buffer .= $this->_serverChoice();
     $buffer .= PMA_Util::getImage('ajax_clock_small.gif', __('Loading…'), array('style' => 'visibility: hidden; display:none', 'class' => 'throbber'));
     $buffer .= '</div>';
     // pma_navigation_header
     $buffer .= '<div id="pma_navigation_tree"' . $class . '>';
     return $buffer;
 }
开发者ID:Kunigaikstis,项目名称:AzureTest-1,代码行数:34,代码来源:NavigationHeader.class.php

示例2: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  *
  * @return Node_Database
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA_Util::getImage('s_db.png');
     $this->links = array('text' => $GLOBALS['cfg']['DefaultTabDatabase'] . '?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'], 'icon' => 'db_operations.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token']);
     $this->classes = 'database';
 }
开发者ID:fanscky,项目名称:HTPMS,代码行数:17,代码来源:Node_Database.class.php

示例3: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  *
  * @return Node_Procedure
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA_Util::getImage('b_routines.png', __('Procedure'));
     $this->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;item_name=%1$s&amp;item_type=PROCEDURE' . '&amp;execute_dialog=1&amp;token=' . $GLOBALS['token'], 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;item_name=%1$s&amp;item_type=PROCEDURE' . '&amp;edit_item=1&amp;token=' . $GLOBALS['token']);
     $this->classes = 'procedure';
 }
开发者ID:skduncan,项目名称:pizza-order,代码行数:17,代码来源:Node_Procedure.class.php

示例4: PMA_getHtmlForSubPageHeader

/**
 * Returns the html for the sub-page heading
 *
 * @param string $type     Sub page type
 * @param string $link     Link to the official MySQL documentation
 * @param bool   $is_image Display image or icon, true: image, false: icon
 *
 * @return string
 */
function PMA_getHtmlForSubPageHeader($type, $link = '', $is_image = true)
{
    //array contains Sub page icon and text
    $header = array();
    $header['variables']['image'] = 's_vars.png';
    $header['variables']['text'] = __('Server variables and settings');
    $header['engines']['image'] = 'b_engine.png';
    $header['engines']['text'] = __('Storage Engines');
    $header['plugins']['image'] = 'b_engine.png';
    $header['plugins']['text'] = __('Plugins');
    $header['binlog']['image'] = 's_tbl.png';
    $header['binlog']['text'] = __('Binary log');
    $header['collations']['image'] = 's_asci.png';
    $header['collations']['text'] = __('Character Sets and Collations');
    $header['replication']['image'] = 's_replication.png';
    $header['replication']['text'] = __('Replication');
    $header['database_statistics']['image'] = 's_db.png';
    $header['database_statistics']['text'] = __('Databases statistics');
    $header['databases']['image'] = 's_db.png';
    $header['databases']['text'] = __('Databases');
    $header['privileges']['image'] = 'b_usrlist.png';
    $header['privileges']['text'] = __('Privileges');
    if ($is_image) {
        $html = '<h2>' . "\n" . PMA_Util::getImage($header[$type]['image']) . '    ' . $header[$type]['text'] . "\n" . $link . '</h2>' . "\n";
    } else {
        $html = '<h2>' . "\n" . PMA_Util::getIcon($header[$type]['image']) . '    ' . $header[$type]['text'] . "\n" . $link . '</h2>' . "\n";
    }
    return $html;
}
开发者ID:altesien,项目名称:FinalProject,代码行数:38,代码来源:server_common.lib.php

示例5: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA_Util::getImage('b_props.png', __('View'));
     $this->links = array('text' => 'sql.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s&amp;pos=0' . '&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $_SESSION[' PMA_token ']);
     $this->classes = 'view';
 }
开发者ID:TheBlackBloodyUnicorn,项目名称:pico_wanderblog,代码行数:15,代码来源:Node_View.class.php

示例6: PMA_getHtmlForCreateTable

/**
 * Returns the html for create table.
 *
 * @param string $db database name
 *
 * @return string
 */
function PMA_getHtmlForCreateTable($db)
{
    $html = '<form id="create_table_form_minimal" method="post" ' . 'action="tbl_create.php">';
    $html .= '<fieldset>';
    $html .= '<legend>';
    if (PMA_Util::showIcons('ActionLinksMode')) {
        $html .= PMA_Util::getImage('b_newtbl.png');
    }
    $html .= __('Create table');
    $html .= ' </legend>';
    $html .= PMA_URL_getHiddenInputs($db);
    $html .= '<div class="formelement">';
    $html .= __('Name') . ":";
    $html .= '  <input type="text" name="table" maxlength="64" ' . 'size="30" required="required" />';
    $html .= ' </div>';
    $html .= '  <div class="formelement">';
    $html .= __('Number of columns') . ":";
    $html .= '  <input type="number" min="1" name="num_fields" value="4" required="required" />';
    $html .= ' </div>';
    $html .= '  <div class="clearfloat"></div>';
    $html .= '</fieldset>';
    $html .= '<fieldset class="tblFooters">';
    $html .= '   <input type="submit" value="' . __('Go') . '" />';
    $html .= '</fieldset>';
    $html .= '</form>';
    return $html;
}
开发者ID:skduncan,项目名称:pizza-order,代码行数:34,代码来源:display_create_table.lib.php

示例7: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  *
  * @return Node_Index
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA_Util::getImage('b_index.png', __('Index'));
     $this->links = array('text' => 'tbl_indexes.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s&amp;index=%1$s' . '&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'tbl_indexes.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s&amp;index=%1$s' . '&amp;token=' . $_SESSION[' PMA_token ']);
     $this->classes = 'index';
 }
开发者ID:saisai,项目名称:phpmyadmin,代码行数:17,代码来源:Node_Index.class.php

示例8: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  *
  * @return Node_Function
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA_Util::getImage('b_routines.png');
     $this->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;item_name=%1$s&amp;item_type=FUNCTION' . '&amp;edit_item=1&amp;token=' . $GLOBALS['token'], 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;item_name=%1$s&amp;item_type=FUNCTION' . '&amp;export_item=1&amp;token=' . $GLOBALS['token']);
     $this->classes = 'function';
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:17,代码来源:Node_Function.class.php

示例9: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  *
  * @return Node_Table
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA_Util::getImage('b_browse.png');
     $this->links = array('text' => $GLOBALS['cfg']['DefaultTabTable'] . '?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;pos=0&amp;token=' . $GLOBALS['token'], 'icon' => $GLOBALS['cfg']['NavigationTreeDefaultTabTable'] . '?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s&amp;token=' . $GLOBALS['token']);
     $this->classes = 'table';
 }
开发者ID:fanscky,项目名称:HTPMS,代码行数:17,代码来源:Node_Table.class.php

示例10: __construct

 /**
  * Initialises the class
  *
  * @param string $name An identifier for the new node
  *
  * @return Node_Database_Container
  */
 public function __construct($name)
 {
     parent::__construct($name, Node::CONTAINER);
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new database', 'New'));
     $new->isNew = $GLOBALS['is_create_db_priv'];
     $new->icon = PMA_Util::getImage('b_newdb.png', '');
     $new->links = array('text' => 'server_databases.php?server=' . $GLOBALS['server'] . '&amp;token=' . $GLOBALS['token'], 'icon' => 'server_databases.php?server=' . $GLOBALS['server'] . '&amp;token=' . $GLOBALS['token']);
     $new->classes = 'new_database italics';
     $this->addChild($new);
 }
开发者ID:yszar,项目名称:linuxwp,代码行数:17,代码来源:Node_Database_Container.class.php

示例11: getHtmlForControlButtons

 /**
  * Returns HTML for hide button displayed infront of the database child node
  *
  * @return String HTML for hide button
  */
 public function getHtmlForControlButtons()
 {
     $ret = '';
     $cfgRelation = PMA_getRelationsParam();
     if ($cfgRelation['navwork']) {
         $db = $this->realParent()->real_name;
         $item = $this->real_name;
         $ret = '<span class="navItemControls">' . '<a href="navigation.php' . PMA_URL_getCommon() . '&hideNavItem=true' . '&itemType=' . urlencode($this->getItemType()) . '&itemName=' . urlencode($item) . '&dbName=' . urlencode($db) . '"' . ' class="hideNavItem ajax">' . PMA_Util::getImage('lightbulb_off.png', __('Hide')) . '</a></span>';
     }
     return $ret;
 }
开发者ID:Sorekk,项目名称:cvillecouncilus,代码行数:16,代码来源:Node_DatabaseChild.class.php

示例12: __construct

 /**
  * Initialises the class
  *
  * @return Node_Event_Container
  */
 public function __construct()
 {
     parent::__construct(__('Events'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_events.png', '');
     $this->links = array('text' => 'db_events.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'db_events.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token ']);
     $this->real_name = 'events';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new event', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_event_add.png', '');
     $new->links = array('text' => 'db_events.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '] . '&add_item=1', 'icon' => 'db_events.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '] . '&add_item=1');
     $new->classes = 'new_event italics';
     $this->addChild($new);
 }
开发者ID:hewenhao2008,项目名称:phpmyadmin,代码行数:18,代码来源:Node_Event_Container.class.php

示例13: __construct

 /**
  * Initialises the class
  *
  * @return Node_Column_Container
  */
 public function __construct()
 {
     parent::__construct(__('Columns'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('pause.png', '');
     $this->links = array('text' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $GLOBALS['token'], 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $GLOBALS['token']);
     $this->real_name = 'columns';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new column', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_column_add.png', '');
     $new->links = array('text' => 'tbl_addfield.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s' . '&amp;field_where=last&after_field=' . '&amp;token=' . $GLOBALS['token'], 'icon' => 'tbl_addfield.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s' . '&amp;field_where=last&after_field=' . '&amp;token=' . $GLOBALS['token']);
     $new->classes = 'new_column italics';
     $this->addChild($new);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:18,代码来源:Node_Column_Container.class.php

示例14: __construct

 /**
  * Initialises the class
  *
  * @return Node_View_Container
  */
 public function __construct()
 {
     parent::__construct(__('Views'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_views.png', '');
     $this->links = array('text' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'], 'icon' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token']);
     $this->real_name = 'views';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new view', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_view_add.png', '');
     $new->links = array('text' => 'view_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'], 'icon' => 'view_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token']);
     $new->classes = 'new_view italics';
     $this->addChild($new);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:18,代码来源:Node_View_Container.class.php

示例15: __construct

 /**
  * Initialises the class
  *
  * @return Node_Column_Container
  */
 public function __construct()
 {
     parent::__construct(__('Functions'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_routines.png');
     $this->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'], 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token']);
     $this->real_name = 'functions';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new function', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_routine_add.png', '');
     $new->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'] . '&add_item=1&amp;item_type=FUNCTION', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'] . '&add_item=1&amp;item_type=FUNCTION');
     $new->classes = 'new_function italics';
     $this->addChild($new);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:18,代码来源:Node_Function_Container.class.php


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