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


PHP img_picto函数代码示例

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


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

示例1: uploadForm

 /**
  * Piece of code extracted from Form::formconfirm to show a confirm dialog with a upload form
  * File input has name 'uploadfile'
  *
  * @param string $page Url of page to call if confirmation is OK
  * @param string $title Title
  * @param string $question Question
  * @param string $action Action
  * @param string $label Label of the input
  * @return string HTML code
  */
 public static function uploadForm($page, $title, $question, $action, $label)
 {
     global $langs;
     $formconfirm = "\n<!-- begin form_confirm page=" . $page . " -->\n";
     $formconfirm .= '<form method="POST" action="' . $page . '" class="notoptoleftroright" enctype="multipart/form-data">' . "\n";
     $formconfirm .= '<input type="hidden" name="action" value="' . $action . '">';
     $formconfirm .= '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">' . "\n";
     $formconfirm .= '<table width="100%" class="valid">' . "\n";
     // Line title
     $formconfirm .= '<tr class="validtitre"><td class="validtitre" colspan="3">' . img_picto('', 'recent') . ' ' . $title . '</td></tr>' . "\n";
     // Line form fields
     $formconfirm .= '<tr class="valid"><td class="valid" colspan="3">' . "\n";
     $formconfirm .= $label . '</td><td valign="top" colspan="2" align="left">';
     $formconfirm .= '<input type="file" name="uploadfile">';
     $formconfirm .= '</td></tr>' . "\n";
     $formconfirm .= '</td></tr>' . "\n";
     // Line with question
     $formconfirm .= '<tr class="valid">';
     $formconfirm .= '<td class="valid" colspan="3"></td>';
     $formconfirm .= '<td class="valid" colspan="2"><input class="button" type="submit" value="' . $langs->trans("Upload") . '"></td>';
     $formconfirm .= '</tr>' . "\n";
     $formconfirm .= '</table>' . "\n";
     $formconfirm .= "</form>\n";
     $formconfirm .= '<br>';
     $formconfirm .= "<!-- end form_confirm -->\n";
     return $formconfirm;
 }
开发者ID:marcosgdf,项目名称:dolibarr-importorderlines,代码行数:38,代码来源:Utils.php

示例2: _liste

function _liste()
{
    global $langs, $db, $user, $conf;
    $langs->load('asset@asset');
    llxHeader('', $langs->trans('ListControl'), '', '');
    getStandartJS();
    if (isset($_SESSION['AssetMsg'])) {
        print_r('<div class="info">' . $langs->trans($_SESSION['AssetMsg']) . '</div>');
        unset($_SESSION['AssetMsg']);
    }
    $form = new TFormCore();
    $assetControl = new TAssetControl();
    $r = new TSSRenderControler($assetControl);
    $sql = 'SELECT rowid as id, libelle, type, question, "" as action FROM ' . MAIN_DB_PREFIX . 'asset_control';
    $THide = array('id');
    $form = new TFormCore($_SERVER['PHP_SELF'], 'form', 'GET');
    $ATMdb = new TPDOdb();
    $r->liste($ATMdb, $sql, array('limit' => array('nbLine' => '30'), 'subQuery' => array(), 'link' => array('libelle' => '<a href="' . DOL_URL_ROOT . '/custom/asset/control.php?id=@id@">' . img_picto('', 'object_generic.png', '', 0) . '@val@</a>', 'question' => '<a href="' . DOL_URL_ROOT . '/custom/asset/control.php?id=@id@">@val@</a>', 'action' => '<a title="Modifier" href="control.php?id=@id@&action=edit">' . img_picto('', 'edit.png', '', 0) . '</a>&nbsp;&nbsp;&nbsp;<a title="Supprimer" onclick="if (!window.confirm(\'Confirmez-vous la suppression ?\')) return false;" href="control.php?id=@id@&action=delete">' . img_picto('', 'delete.png', '', 0) . "</a>"), 'search' => array('libelle' => array('recherche' => true, 'table' => '')), 'translate' => array(), 'hide' => $THide, 'liste' => array('titre' => $langs->trans('ListControl'), 'image' => img_picto('', 'title.png', '', 0), 'picto_precedent' => img_picto('', 'back.png', '', 0), 'picto_suivant' => img_picto('', 'next.png', '', 0), 'noheader' => 0, 'messageNothing' => $langs->trans('AssetEmptyControl'), 'picto_search' => img_picto('', 'search.png', '', 0)), 'title' => array('libelle' => 'Libelle', 'type' => 'Type', 'nb_value' => 'Nombre de valeurs associés', 'question' => 'Question', 'action' => 'Action'), 'eval' => array('type' => 'TAssetControl::$TType["@val@"]')));
    $form->end();
    echo '<div class="tabsAction">';
    echo '<a class="butAction" href="control.php?action=new">' . $langs->trans('AssetCreateControl') . '</a>';
    echo '</div>';
    $ATMdb->close();
    llxFooter('');
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_of,代码行数:25,代码来源:list_control.php

示例3: init

 private function init(&$TParam)
 {
     if (!isset($TParam['hide'])) {
         $TParam['hide'] = array();
     }
     if (!isset($TParam['link'])) {
         $TParam['link'] = array();
     }
     if (!isset($TParam['subQuery'])) {
         $TParam['subQuery'] = array();
     }
     if (!isset($TParam['type'])) {
         $TParam['type'] = array();
     }
     if (!isset($TParam['orderby']['noOrder'])) {
         $TParam['orderby']['noOrder'] = array();
     }
     if (!isset($TParam['node'])) {
         $TParam['node'] = array('main' => 'data', 'object' => 'dataline');
     }
     if (!isset($TParam['liste'])) {
         $TParam['liste'] = array();
     }
     $TParam['liste'] = array_merge(array('messageNothing' => "Il n'y a aucun élément à afficher.", 'picto_precedent' => '&lt;', 'picto_suivant' => '&gt;', 'order_down' => img_down(), 'order_up' => img_up(), 'noheader' => 0, 'image' => '', 'titre' => 'Liste', 'orderDown' => '', 'orderUp' => '', 'id' => $this->id, 'picto_search' => img_picto('Search', 'search.png'), 'head_search' => '', 'export' => array()), $TParam['liste']);
     if (!isset($TParam['limit'])) {
         $TParam['limit'] = array();
     }
     if (!empty($_REQUEST['TListTBS'][$this->id]['page'])) {
         $TParam['limit']['page'] = $_REQUEST['TListTBS'][$this->id]['page'];
     }
     $TParam['limit'] = array_merge(array('page' => 1, 'nbLine' => 30), $TParam['limit']);
     if (!empty($_REQUEST['TListTBS'][$this->id]['orderBy'])) {
         /*
         	$TParam['orderBy'] = array();	
         				foreach($_REQUEST['TListTBS'][$this->id]['orderBy'] as $asc=>$field) {
         					$TParam['orderBy'][$field]=$asc;
         				}
         */
         $TParam['orderBy'] = $_REQUEST['TListTBS'][$this->id]['orderBy'];
     }
     //	print_r($TParam);
 }
开发者ID:openthink-laurent,项目名称:dolibarr_module_abricot,代码行数:42,代码来源:class.list.tbs.php

示例4: dol_print_cron_urls

/**
 * Show information with URLs to launch jobs
 *
 * @return	int			0
 */
function dol_print_cron_urls()
{
    global $conf, $langs, $user;
    global $dolibarr_main_url_root;
    // Define $urlwithroot
    $urlwithouturlroot = preg_replace('/' . preg_quote(DOL_URL_ROOT, '/') . '$/i', '', trim($dolibarr_main_url_root));
    $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;
    // This is to use external domain name found into config file
    //$urlwithroot=DOL_MAIN_URL_ROOT;					// This is to use same domain name than current
    // Cron launch
    print '<u>' . $langs->trans("URLToLaunchCronJobs") . ':</u><br>';
    $url = $urlwithroot . '/public/cron/cron_run_jobs.php?' . (empty($conf->global->CRON_KEY) ? '' : 'securitykey=' . $conf->global->CRON_KEY . '&') . 'userlogin=' . $user->login;
    print img_picto('', 'object_globe.png') . ' <a href="' . $url . '" target="_blank">' . $url . "</a><br>\n";
    print ' ' . $langs->trans("OrToLaunchASpecificJob") . '<br>';
    $url = $urlwithroot . '/public/cron/cron_run_jobs.php?' . (empty($conf->global->CRON_KEY) ? '' : 'securitykey=' . $conf->global->CRON_KEY . '&') . 'userlogin=' . $user->login . '&id=cronjobid';
    print img_picto('', 'object_globe.png') . ' <a href="' . $url . '" target="_blank">' . $url . "</a><br>\n";
    print '<br>';
    print '<u>' . $langs->trans("FileToLaunchCronJobs") . ':</u><br>';
    $file = '/scripts/cron/cron_run_jobs.php' . ' ' . (empty($conf->global->CRON_KEY) ? 'securitykey' : '' . $conf->global->CRON_KEY . '') . ' ' . $user->login . ' [cronjobid]';
    print '<textarea rows="' . ROWS_2 . '" cols="120">..' . $file . "</textarea><br>\n";
    print '<br>';
    // Add note
    $linuxlike = 1;
    if (preg_match('/^win/i', PHP_OS)) {
        $linuxlike = 0;
    }
    if (preg_match('/^mac/i', PHP_OS)) {
        $linuxlike = 0;
    }
    print $langs->trans("Note") . ': ';
    if ($linuxlike) {
        print $langs->trans("CronExplainHowToRunUnix");
        print '<br>';
        print '<textarea rows="' . ROWS_1 . '" style="width:80%">*/5 * * * * pathtoscript/scripts/cron/cron_run_jobs.php ' . (empty($conf->global->CRON_KEY) ? 'securitykey' : '' . $conf->global->CRON_KEY . '') . ' ' . $user->login . ' &gt; ' . DOL_DOCUMENT_ROOT . '/cron_run_jobs.php.log</textarea><br>';
    } else {
        print $langs->trans("CronExplainHowToRunWin");
    }
    return 0;
}
开发者ID:Samara94,项目名称:dolibarr,代码行数:44,代码来源:cron.lib.php

示例5: price2num

     $totalvalue += price2num($objp->pmp * $objp->value, 'MT');
     // Price sell min
     if (empty($conf->global->PRODUIT_MULTIPRICES)) {
         $pricemin = $objp->price;
         print '<td align="right">';
         print price(price2num($pricemin, 'MU'), 1);
         print '</td>';
         // Total sell min
         print '<td align="right">';
         print price(price2num($pricemin * $objp->value, 'MT'), 1);
         print '</td>';
     }
     $totalvaluesell += price2num($pricemin * $objp->value, 'MT');
     if ($user->rights->stock->mouvement->creer) {
         print '<td align="center"><a href="' . DOL_URL_ROOT . '/product/stock/product.php?dwid=' . $object->id . '&amp;id=' . $objp->rowid . '&amp;action=transfert">';
         print img_picto($langs->trans("StockMovement"), 'uparrow.png') . ' ' . $langs->trans("StockMovement");
         print "</a></td>";
     }
     if ($user->rights->stock->creer) {
         print '<td align="center"><a href="' . DOL_URL_ROOT . '/product/stock/product.php?dwid=' . $object->id . '&amp;id=' . $objp->rowid . '&amp;action=correction">';
         print $langs->trans("StockCorrection");
         print "</a></td>";
     }
     print "</tr>";
     $i++;
 }
 $db->free($resql);
 print '<tr class="liste_total"><td class="liste_total" colspan="2">' . $langs->trans("Total") . '</td>';
 print '<td class="liste_total" align="right">' . $totalunit . '</td>';
 print '<td class="liste_total">&nbsp;</td>';
 print '<td class="liste_total" align="right">' . price(price2num($totalvalue, 'MT')) . '</td>';
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php

示例6: img_picto

     print '<td align="center">' . "\n";
     print '<a href="' . $_SERVER["PHP_SELF"] . '?action=del&value=' . $name . '">';
     print img_picto($langs->trans("Enabled"), 'switch_on');
     print '</a>';
     print '</td>';
 } else {
     print '<td align="center">' . "\n";
     print '<a href="' . $_SERVER["PHP_SELF"] . '?action=set&value=' . $name . '&amp;scandir=' . $module->scandir . '&amp;label=' . urlencode($module->name) . '">' . img_picto($langs->trans("Disabled"), 'switch_off') . '</a>';
     print "</td>";
 }
 // Defaut
 print '<td align="center">';
 if ($conf->global->COMMANDE_ADDON_PDF == $name) {
     print img_picto($langs->trans("Default"), 'on');
 } else {
     print '<a href="' . $_SERVER["PHP_SELF"] . '?action=setdoc&value=' . $name . '&amp;scandir=' . $module->scandir . '&amp;label=' . urlencode($module->name) . '" alt="' . $langs->trans("Default") . '">' . img_picto($langs->trans("Disabled"), 'off') . '</a>';
 }
 print '</td>';
 // Info
 $htmltooltip = '' . $langs->trans("Name") . ': ' . $module->name;
 $htmltooltip .= '<br>' . $langs->trans("Type") . ': ' . ($module->type ? $module->type : $langs->trans("Unknown"));
 if ($module->type == 'pdf') {
     $htmltooltip .= '<br>' . $langs->trans("Width") . '/' . $langs->trans("Height") . ': ' . $module->page_largeur . '/' . $module->page_hauteur;
 }
 $htmltooltip .= '<br><br><u>' . $langs->trans("FeaturesSupported") . ':</u>';
 $htmltooltip .= '<br>' . $langs->trans("Logo") . ': ' . yn($module->option_logo, 1, 1);
 $htmltooltip .= '<br>' . $langs->trans("PaymentMode") . ': ' . yn($module->option_modereg, 1, 1);
 $htmltooltip .= '<br>' . $langs->trans("PaymentConditions") . ': ' . yn($module->option_condreg, 1, 1);
 $htmltooltip .= '<br>' . $langs->trans("MultiLanguage") . ': ' . yn($module->option_multilang, 1, 1);
 //$htmltooltip.='<br>'.$langs->trans("Discounts").': '.yn($module->option_escompte,1,1);
 //$htmltooltip.='<br>'.$langs->trans("CreditNote").': '.yn($module->option_credit_note,1,1);
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:commande.php

示例7: price

     }
     print price($amount[$key]);
     print '</a>';
     print '</td>';
     // Percent;
     print '<td align="right">' . ($catotal > 0 ? round(100 * $amount[$key] / $catotal, 2) . '%' : '&nbsp;') . '</td>';
     // Other stats
     print '<td align="center">';
     if (!empty($conf->propal->enabled) && $key > 0) {
         print '&nbsp;<a href="' . DOL_URL_ROOT . '/comm/propal/stats/index.php?socid=' . $key . '">' . img_picto($langs->trans("ProposalStats"), "stats") . '</a>&nbsp;';
     }
     if (!empty($conf->commande->enabled) && $key > 0) {
         print '&nbsp;<a href="' . DOL_URL_ROOT . '/commande/stats/index.php?socid=' . $key . '">' . img_picto($langs->trans("OrderStats"), "stats") . '</a>&nbsp;';
     }
     if (!empty($conf->facture->enabled) && $key > 0) {
         print '&nbsp;<a href="' . DOL_URL_ROOT . '/compta/facture/stats/index.php?socid=' . $key . '">' . img_picto($langs->trans("InvoiceStats"), "stats") . '</a>&nbsp;';
     }
     print '</td>';
     print "</tr>\n";
     $i++;
 }
 // Total
 print '<tr class="liste_total">';
 print '<td>' . $langs->trans("Total") . '</td>';
 if ($modecompta != 'CREANCES-DETTES') {
     print '<td colspan="1"></td>';
 } else {
     print '<td align="right">' . price($catotal_ht) . '</td>';
 }
 print '<td align="right">' . price($catotal) . '</td>';
 print '<td>&nbsp;</td>';
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:casoc.php

示例8: img_warning

 $var = !$var;
 print '<tr ' . $bc[$var] . '>';
 print '<td class="nowrap">';
 $objectstatic->id = $objp->propalid;
 $objectstatic->ref = $objp->ref;
 print '<table class="nobordernopadding"><tr class="nocellnopadd">';
 print '<td class="nobordernopadding nowrap">';
 print $objectstatic->getNomUrl(1);
 print '</td>';
 print '<td style="min-width: 20px" class="nobordernopadding nowrap">';
 if ($objp->fk_statut == 1 && $db->jdate($objp->dfv) < $now - $conf->propal->cloture->warning_delay) {
     print img_warning($langs->trans("Late"));
 }
 if (!empty($objp->note_private)) {
     print ' <span class="note">';
     print '<a href="' . DOL_URL_ROOT . '/comm/propal/note.php?id=' . $objp->propalid . '">' . img_picto($langs->trans("ViewPrivateNote"), 'object_generic') . '</a>';
     print '</span>';
 }
 print '</td>';
 // Ref
 print '<td width="16" align="right" class="nobordernopadding hideonsmartphone">';
 $filename = dol_sanitizeFileName($objp->ref);
 $filedir = $conf->propal->dir_output . '/' . dol_sanitizeFileName($objp->ref);
 $urlsource = $_SERVER['PHP_SELF'] . '?id=' . $objp->propalid;
 print $formfile->getDocumentsLink($objectstatic->element, $filename, $filedir);
 print '</td></tr></table>';
 print "</td>\n";
 // Customer ref
 print '<td class="nocellnopadd nowrap">';
 print $objp->ref_client;
 print '</td>';
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:list.php

示例9: LibStatut

	/**
	 *    	Return label of a contract line status
	 *    	@param      statut      id statut
	 *		@param      mode        0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
	 *		@param		expired		0=Not expired, 1=Expired, -1=Both or unknown
	 *    	@return     string      Libelle
	 */
	function LibStatut($statut,$mode,$expired=-1)
	{
		global $langs;
		$langs->load("contracts");
		if ($mode == 0)
		{
			if ($statut == 0) { return $langs->trans("ServiceStatusInitial"); }
			if ($statut == 4 && $expired == -1) { return $langs->trans("ServiceStatusRunning"); }
			if ($statut == 4 && $expired == 0)  { return $langs->trans("ServiceStatusNotLate"); }
			if ($statut == 4 && $expired == 1)  { return $langs->trans("ServiceStatusLate"); }
			if ($statut == 5) { return $langs->trans("ServiceStatusClosed");  }
		}
		if ($mode == 1)
		{
			if ($statut == 0) { return $langs->trans("ServiceStatusInitial"); }
			if ($statut == 4 && $expired == -1) { return $langs->trans("ServiceStatusRunning"); }
			if ($statut == 4 && $expired == 0)  { return $langs->trans("ServiceStatusNotLateShort"); }
			if ($statut == 4 && $expired == 1)  { return $langs->trans("ServiceStatusLateShort"); }
			if ($statut == 5) { return $langs->trans("ServiceStatusClosed");  }
		}
		if ($mode == 2)
		{
			if ($statut == 0) { return img_picto($langs->trans('ServiceStatusInitial'),'statut0').' '.$langs->trans("ServiceStatusInitial"); }
			if ($statut == 4 && $expired == -1) { return img_picto($langs->trans('ServiceStatusRunning'),'statut4').' '.$langs->trans("ServiceStatusRunning"); }
			if ($statut == 4 && $expired == 0)  { return img_picto($langs->trans('ServiceStatusNotLate'),'statut4').' '.$langs->trans("ServiceStatusNotLateShort"); }
			if ($statut == 4 && $expired == 1)  { return img_picto($langs->trans('ServiceStatusLate'),'statut3').' '.$langs->trans("ServiceStatusLateShort"); }
			if ($statut == 5) { return img_picto($langs->trans('ServiceStatusClosed'),'statut6') .' '.$langs->trans("ServiceStatusClosed"); }
		}
		if ($mode == 3)
		{
			if ($statut == 0) { return img_picto($langs->trans('ServiceStatusInitial'),'statut0'); }
			if ($statut == 4 && $expired == -1) { return img_picto($langs->trans('ServiceStatusRunning'),'statut4'); }
			if ($statut == 4 && $expired == 0)  { return img_picto($langs->trans('ServiceStatusNotLate'),'statut4'); }
			if ($statut == 4 && $expired == 1)  { return img_picto($langs->trans('ServiceStatusLate'),'statut3'); }
			if ($statut == 5) { return img_picto($langs->trans('ServiceStatusClosed'),'statut6'); }
		}
		if ($mode == 4)
		{
			if ($statut == 0) { return img_picto($langs->trans('ServiceStatusInitial'),'statut0').' '.$langs->trans("ServiceStatusInitial"); }
			if ($statut == 4 && $expired == -1) { return img_picto($langs->trans('ServiceStatusRunning'),'statut4').' '.$langs->trans("ServiceStatusRunning"); }
			if ($statut == 4 && $expired == 0)  { return img_picto($langs->trans('ServiceStatusNotLate'),'statut4').' '.$langs->trans("ServiceStatusNotLate"); }
			if ($statut == 4 && $expired == 1)  { return img_picto($langs->trans('ServiceStatusLate'),'statut3').' '.$langs->trans("ServiceStatusLate"); }
			if ($statut == 5) { return img_picto($langs->trans('ServiceStatusClosed'),'statut6') .' '.$langs->trans("ServiceStatusClosed"); }
		}
		if ($mode == 5)
		{
			if ($statut == 0) { return $langs->trans("ServiceStatusInitial").' '.img_picto($langs->trans('ServiceStatusInitial'),'statut0'); }
			if ($statut == 4 && $expired == -1) { return $langs->trans("ServiceStatusRunning").' '.img_picto($langs->trans('ServiceStatusRunning'),'statut4'); }
			if ($statut == 4 && $expired == 0)  { return $langs->trans("ServiceStatusNotLateShort").' '.img_picto($langs->trans('ServiceStatusNotLateShort'),'statut4'); }
			if ($statut == 4 && $expired == 1)  { return $langs->trans("ServiceStatusLateShort").' '.img_picto($langs->trans('ServiceStatusLate'),'statut3'); }
			if ($statut == 5) { return $langs->trans("ServiceStatusClosed").' '.img_picto($langs->trans('ServiceStatusClosed'),'statut6'); }
		}
	}
开发者ID:remyyounes,项目名称:dolibarr,代码行数:60,代码来源:contrat.class.php

示例10: LibStatut

 /**
  *	Return status label for an object
  *
  *	@param	int			$statut	  	Id statut
  *	@param	integer		$mode		0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
  * 	@return	string	  				Label
  */
 function LibStatut($statut, $mode = 0)
 {
     // list of Statut of the task
     $this->statuts[0] = 'Draft';
     $this->statuts[1] = 'Validated';
     $this->statuts[2] = 'Running';
     $this->statuts[3] = 'Finish';
     $this->statuts[4] = 'Transfered';
     $this->statuts_short[0] = 'Draft';
     $this->statuts_short[1] = 'Validated';
     $this->statuts_short[2] = 'Running';
     $this->statuts_short[3] = 'Finish';
     $this->statuts_short[4] = 'Transfered';
     global $langs;
     if ($mode == 0) {
         return $langs->trans($this->statuts[$statut]);
     }
     if ($mode == 1) {
         return $langs->trans($this->statuts_short[$statut]);
     }
     if ($mode == 2) {
         if ($statut == 0) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut0') . ' ' . $langs->trans($this->statuts_short[$statut]);
         }
         if ($statut == 1) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut1') . ' ' . $langs->trans($this->statuts_short[$statut]);
         }
         if ($statut == 2) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut3') . ' ' . $langs->trans($this->statuts_short[$statut]);
         }
         if ($statut == 3) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut4') . ' ' . $langs->trans($this->statuts_short[$statut]);
         }
         if ($statut == 4) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut6') . ' ' . $langs->trans($this->statuts_short[$statut]);
         }
         if ($statut == 5) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut5') . ' ' . $langs->trans($this->statuts_short[$statut]);
         }
     }
     if ($mode == 3) {
         if ($statut == 0) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut0');
         }
         if ($statut == 1) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut1');
         }
         if ($statut == 2) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut3');
         }
         if ($statut == 3) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut4');
         }
         if ($statut == 4) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut6');
         }
         if ($statut == 5) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut5');
         }
     }
     if ($mode == 4) {
         if ($statut == 0) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut0') . ' ' . $langs->trans($this->statuts[$statut]);
         }
         if ($statut == 1) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut1') . ' ' . $langs->trans($this->statuts[$statut]);
         }
         if ($statut == 2) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut3') . ' ' . $langs->trans($this->statuts[$statut]);
         }
         if ($statut == 3) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut4') . ' ' . $langs->trans($this->statuts[$statut]);
         }
         if ($statut == 4) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut6') . ' ' . $langs->trans($this->statuts[$statut]);
         }
         if ($statut == 5) {
             return img_picto($langs->trans($this->statuts_short[$statut]), 'statut5') . ' ' . $langs->trans($this->statuts[$statut]);
         }
     }
     if ($mode == 5) {
         if ($statut == 0) {
             return $langs->trans($this->statuts_short[$statut]) . ' ' . img_picto($langs->trans($this->statuts_short[$statut]), 'statut0');
         }
         if ($statut == 1) {
             return $langs->trans($this->statuts_short[$statut]) . ' ' . img_picto($langs->trans($this->statuts_short[$statut]), 'statut1');
         }
         if ($statut == 2) {
             return $langs->trans($this->statuts_short[$statut]) . ' ' . img_picto($langs->trans($this->statuts_short[$statut]), 'statut3');
         }
         if ($statut == 3) {
             return $langs->trans($this->statuts_short[$statut]) . ' ' . img_picto($langs->trans($this->statuts_short[$statut]), 'statut4');
         }
//.........这里部分代码省略.........
开发者ID:Samara94,项目名称:dolibarr,代码行数:101,代码来源:task.class.php

示例11: LibStatut

 /**
  *  Return label of a status
  *
  * 	@param  int		$statut		Id statut
  *  @param  int		$mode       0=Long label, 1=Short label, 2=Picto + Short label, 3=Picto, 4=Picto + Long label, 5=Short label + Picto
  *  @return string				Label of status
  */
 function LibStatut($statut, $mode = 0)
 {
     global $langs;
     $langs->load('orders');
     if ($mode == 0) {
         return $langs->trans($this->statuts[$statut]);
     }
     if ($mode == 1) {
         return $langs->trans($this->statutshort[$statut]);
     }
     if ($mode == 2) {
         return $langs->trans($this->statuts[$statut]);
     }
     if ($mode == 3) {
         if ($statut == 0) {
             return img_picto($langs->trans($this->statuts[$statut]), 'statut0');
         }
         if ($statut == 1) {
             return img_picto($langs->trans($this->statuts[$statut]), 'statut4');
         }
         if ($statut == 2) {
             return img_picto($langs->trans($this->statuts[$statut]), 'statut8');
         }
     }
     if ($mode == 4) {
         if ($statut == 0) {
             return img_picto($langs->trans($this->statuts[$statut]), 'statut0') . ' ' . $langs->trans($this->statuts[$statut]);
         }
         if ($statut == 1) {
             return img_picto($langs->trans($this->statuts[$statut]), 'statut4') . ' ' . $langs->trans($this->statuts[$statut]);
         }
         if ($statut == 2) {
             return img_picto($langs->trans($this->statuts[$statut]), 'statut8') . ' ' . $langs->trans($this->statuts[$statut]);
         }
     }
     if ($mode == 5) {
         if ($statut == 0) {
             return '<span class="hideonsmartphone">' . $langs->trans($this->statutshort[$statut]) . ' </span>' . img_picto($langs->trans($this->statuts[$statut]), 'statut0');
         }
         if ($statut == 1) {
             return '<span class="hideonsmartphone">' . $langs->trans($this->statutshort[$statut]) . ' </span>' . img_picto($langs->trans($this->statuts[$statut]), 'statut4');
         }
         if ($statut == 2) {
             return '<span class="hideonsmartphone">' . $langs->trans($this->statutshort[$statut]) . ' </span>' . img_picto($langs->trans($this->statuts[$statut]), 'statut8');
         }
     }
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:54,代码来源:fournisseur.commande.dispatch.class.php

示例12: GETPOST

require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
$langs->load("errors");
$langs->load("admin");
$langs->load("companies");
$langs->load("resource");
$action = GETPOST('action', 'alpha') ? GETPOST('action', 'alpha') : 'view';
$confirm = GETPOST('confirm', 'alpha');
$id = GETPOST('id', 'int');
$rowid = GETPOST('rowid', 'alpha');
if (!$user->admin) {
    accessforbidden();
}
$acts[0] = "activate";
$acts[1] = "disable";
$actl[0] = img_picto($langs->trans("Disabled"), 'switch_off');
$actl[1] = img_picto($langs->trans("Activated"), 'switch_on');
$listoffset = GETPOST('listoffset');
$listlimit = GETPOST('listlimit') > 0 ? GETPOST('listlimit') : 1000;
$active = 1;
$sortfield = GETPOST("sortfield", 'alpha');
$sortorder = GETPOST("sortorder", 'alpha');
$page = GETPOST("page", 'int');
if ($page == -1) {
    $page = 0;
}
$offset = $listlimit * $page;
$pageprev = $page - 1;
$pagenext = $page + 1;
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('admin'));
// This page is a generic page to edit dictionaries
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:dict.php

示例13: while

    $var = true;
    print '<tr class="liste_titre">';
    print '<th>' . $langs->trans("User") . '</th>';
    print '<th>' . $langs->trans("PrintModule") . '</th>';
    print '<th>' . $langs->trans("PrintDriver") . '</th>';
    print '<th>' . $langs->trans("Printer") . '</th>';
    print '<th>' . $langs->trans("PrinterLocation") . '</th>';
    print '<th>' . $langs->trans("PrinterId") . '</th>';
    print '<th>' . $langs->trans("NumberOfCopy") . '</th>';
    print '<th class="center">' . $langs->trans("Delete") . '</th>';
    print "</tr>\n";
    $sql = 'SELECT p.rowid, p.printer_name, p.printer_location, p.printer_id, p.copy, p.module, p.driver, p.userid, u.login FROM ' . MAIN_DB_PREFIX . 'printing as p, ' . MAIN_DB_PREFIX . 'user as u WHERE p.userid=u.rowid';
    $resql = $db->query($sql);
    while ($row = $db->fetch_array($resql)) {
        $var = !$var;
        print '<tr ' . $bc[$var] . '>';
        print '<td>' . $row['login'] . '</td>';
        print '<td>' . $row['module'] . '</td>';
        print '<td>' . $row['driver'] . '</td>';
        print '<td>' . $row['printer_name'] . '</td>';
        print '<td>' . $row['printer_location'] . '</td>';
        print '<td>' . $row['printer_id'] . '</td>';
        print '<td>' . $row['copy'] . '</td>';
        print '<td class="center">' . img_picto($langs->trans("Delete"), 'delete') . '</td>';
        print "</tr>\n";
    }
    print '</table>';
    dol_fiche_end();
}
llxFooter();
$db->close();
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:printing.php

示例14: img_picto

 $sql .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'paiement_facture as pf ON f.rowid=pf.fk_facture';
 $sql .= " WHERE f.fk_soc = s.rowid AND s.rowid = " . $objsoc->id;
 $sql .= ' GROUP BY f.rowid, f.facnumber, f.type, f.amount, f.total, f.total_ttc,';
 $sql .= ' f.datef, f.datec, f.paye, f.fk_statut,';
 $sql .= ' s.nom, s.rowid';
 $sql .= " ORDER BY f.datef DESC, f.datec DESC";
 $resql = $db->query($sql);
 if ($resql) {
     $var = true;
     $num = $db->num_rows($resql);
     $i = 0;
     if ($num > 0) {
         $tableaushown = 1;
         print '<tr class="liste_titre">';
         print '<td colspan="4"><table width="100%" class="nobordernopadding"><tr><td>' . $langs->trans("LastCustomersBills", $num <= $MAXLIST ? "" : $MAXLIST) . '</td><td align="right"><a href="' . DOL_URL_ROOT . '/compta/facture.php?socid=' . $objsoc->id . '">' . $langs->trans("AllBills") . ' (' . $num . ')</a></td>';
         print '<td width="20px" align="right"><a href="' . DOL_URL_ROOT . '/compta/facture/stats/index.php?socid=' . $objsoc->id . '">' . img_picto($langs->trans("Statistics"), 'stats') . '</a></td>';
         print '</tr></table></td>';
         print '</tr>';
     }
     while ($i < $num && $i < $MAXLIST) {
         $objp = $db->fetch_object($resql);
         $var = !$var;
         print "<tr {$bc[$var]}>";
         print '<td>';
         $facturestatic->id = $objp->facid;
         $facturestatic->ref = $objp->facnumber;
         $facturestatic->type = $objp->type;
         print $facturestatic->getNomUrl(1);
         print '</td>';
         if ($objp->df > 0) {
             print "<td align=\"right\">" . dol_print_date($db->jdate($objp->df), 'day') . "</td>\n";
开发者ID:netors,项目名称:dolibarr,代码行数:31,代码来源:fiche.php

示例15: LibStatut

    /**
     *      Renvoi le libelle d'un statut donne
     *      @param      statut          Id statut
     *      @param      mode            0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
     *      @return     string          Libelle du statut
     */
    function LibStatut($statut,$mode=0)
    {
        global $langs;
        $langs->load('companies');

        if ($mode == 0)
        {
            if ($statut==0) return $langs->trans("ActivityCeased");
            if ($statut==1) return $langs->trans("InActivity");
        }
        if ($mode == 1)
        {
            if ($statut==0) return $langs->trans("ActivityCeased");
            if ($statut==1) return $langs->trans("InActivity");
        }
        if ($mode == 2)
        {
            if ($statut==0) return img_picto($langs->trans("ActivityCeased"),'statut6').' '.$langs->trans("ActivityCeased");
            if ($statut==1) return img_picto($langs->trans("InActivity"),'statut4').' '.$langs->trans("InActivity");
        }
        if ($mode == 3)
        {
            if ($statut==0) return img_picto($langs->trans("ActivityCeased"),'statut6');
            if ($statut==1) return img_picto($langs->trans("InActivity"),'statut4');
        }
        if ($mode == 4)
        {
            if ($statut==0) return img_picto($langs->trans("ActivityCeased"),'statut6').' '.$langs->trans("ActivityCeased");
            if ($statut==1) return img_picto($langs->trans("InActivity"),'statut4').' '.$langs->trans("InActivity");
        }
        if ($mode == 5)
        {
            if ($statut==0) return $langs->trans("ActivityCeased").' '.img_picto($langs->trans("ActivityCeased"),'statut6');
            if ($statut==1) return $langs->trans("InActivity").' '.img_picto($langs->trans("InActivity"),'statut4');
        }
    }
开发者ID:remyyounes,项目名称:dolibarr,代码行数:42,代码来源:societe.class.php


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