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

PHP yn函数代码示例

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

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



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

示例1: getNomUrl

 /**
  *    	Return clicable name (with picto eventually)
  *
  *		@param	int		$withpicto		0=No picto, 1=Include picto into link, 2=Only picto
  *		@param	int		$maxlen			Longueur max libelle
  *		@param	string	$option			Option ('showall')
  *		@return	string					Chaine avec URL
  */
 function getNomUrl($withpicto = 0, $maxlen = 0, $option = '')
 {
     global $langs;
     $result = '';
     $label = $langs->trans("ShowTransaction") . ': ' . $this->rowid;
     $link = '<a href="' . DOL_URL_ROOT . '/compta/bank/ligne.php?rowid=' . $this->rowid . '" title="' . dol_escape_htmltag($label, 1) . '" class="classfortooltip">';
     $linkend = '</a>';
     if ($withpicto) {
         $result .= $link . img_object($label, 'account', 'class="classfortooltip"') . $linkend . ' ';
     }
     $result .= $link . $this->rowid . $linkend;
     if ($option == 'showall' || $option == 'showconciliated') {
         $result .= ' (';
     }
     if ($option == 'showall') {
         $result .= $langs->trans("BankAccount") . ': ';
         $accountstatic = new Account($this->db);
         $accountstatic->id = $this->fk_account;
         $accountstatic->label = $this->bank_account_label;
         $result .= $accountstatic->getNomUrl(0) . ', ';
     }
     if ($option == 'showall' || $option == 'showconciliated') {
         $result .= $langs->trans("BankLineConciliated") . ': ';
         $result .= yn($this->rappro);
     }
     if ($option == 'showall' || $option == 'showconciliated') {
         $result .= ')';
     }
     return $result;
 }
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:38,代码来源:account.class.php


示例2: dol_print_date

        // Date
        print "<td align=\"center\" width=\"100\">";
        if ($obj->dc) {
            print dol_print_date($db->jdate($obj->dc), "day");
        } else {
            print "-";
        }
        print '</td>';
        // Delivery date
        print '<td align="right">';
        print dol_print_date($db->jdate($obj->date_livraison), 'day');
        print '</td>';
        // Statut
        print '<td align="right">' . $commandestatic->LibStatut($obj->fk_statut, 5) . '</td>';
        // Billed
        print '<td align="center">' . yn($obj->billed) . '</td>';
        print '<td></td>';
        print "</tr>\n";
        $i++;
    }
    print "</table>\n";
    print "</form>\n";
    if (!empty($conf->facture->enable)) {
        print '<br>' . img_help(1, '') . ' ' . $langs->trans("ToBillSeveralOrderSelectCustomer", $langs->transnoentitiesnoconv("CreateInvoiceForThisCustomer")) . '<br>';
    }
    $db->free($resql);
} else {
    dol_print_error($db);
}
llxFooter();
$db->close();
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:list.php


示例3: yn

         $product_static->id = $objp->rowid;
         $product_static->load_stock();
     }
 }
 // Desired stock
 if (!empty($arrayfields['p.desiredstock']['checked'])) {
     print '<td align="right">';
     if ($objp->fk_product_type != 1) {
         print $objp->desiredstock;
     }
     print '</td>';
 }
 // Desired stock
 if (!empty($arrayfields['p.tobatch']['checked'])) {
     print '<td align="center">';
     print yn($objp->tobatch);
     print '</td>';
 }
 // Stock
 if (!empty($arrayfields['p.stock']['checked'])) {
     print '<td align="right">';
     if ($objp->fk_product_type != 1) {
         if ($product_static->stock_reel < $objp->seuil_stock_alerte) {
             print img_warning($langs->trans("StockTooLow")) . ' ';
         }
         print $product_static->stock_reel;
     }
     print '</td>';
 }
 // Accountancy code sell
 if (!empty($arrayfields['p.accountancy_code_sell']['checked'])) {
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:list.php


示例4: foreach

print '<td align="right">' . $langs->trans("Size") . '</td>';
print '<td align="center">' . $langs->trans("Unique") . '</td>';
print '<td align="center">' . $langs->trans("Required") . '</td>';
print '<td width="80">&nbsp;</td>';
print "</tr>\n";
$var = True;
foreach ($extrafields->attribute_type as $key => $value) {
    $var = !$var;
    print "<tr " . $bc[$var] . ">";
    print "<td>" . $extrafields->attribute_pos[$key] . "</td>\n";
    print "<td>" . $extrafields->attribute_label[$key] . "</td>\n";
    print "<td>" . $key . "</td>\n";
    print "<td>" . $type2label[$extrafields->attribute_type[$key]] . "</td>\n";
    print '<td align="right">' . $extrafields->attribute_size[$key] . "</td>\n";
    print '<td align="center">' . yn($extrafields->attribute_unique[$key]) . "</td>\n";
    print '<td align="center">' . yn($extrafields->attribute_required[$key]) . "</td>\n";
    print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=edit&attrname=' . $key . '">' . img_edit() . '</a>';
    print "&nbsp; <a href=\"" . $_SERVER["PHP_SELF"] . "?action=delete&attrname={$key}\">" . img_delete() . "</a></td>\n";
    print "</tr>";
    // $i++;
}
print "</table>";
dol_fiche_end();
// Buttons
if ($action != 'create' && $action != 'edit') {
    print '<div class="tabsAction">';
    print "<a class=\"butAction\" href=\"" . $_SERVER["PHP_SELF"] . "?action=create\">" . $langs->trans("NewAttribute") . "</a>";
    print "</div>";
}
/* ************************************************************************** */
/* */
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:facturedet_cust_extrafields.php


示例5: yn

 print yn(isset($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED) ? $conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED : 0, 1);
 print '</td></tr>';
 // Link to help center
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("DisableLinkToHelpCenter") . '</td><td colspan="2">';
 print yn(isset($conf->global->MAIN_HELPCENTER_DISABLELINK) ? $conf->global->MAIN_HELPCENTER_DISABLELINK : 0, 1);
 print '</td></tr>';
 // Link to wiki help
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("DisableLinkToHelp", img_picto('', DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/helpdoc.png', '', 1)) . '</td><td colspan="2">';
 print yn(isset($conf->global->MAIN_HELP_DISABLELINK) ? $conf->global->MAIN_HELP_DISABLELINK : 0, 1);
 print '</td></tr>';
 // Show bugtrack link
 $var = !$var;
 print '<tr ' . $bc[$var] . '"><td width="35%">' . $langs->trans("ShowBugTrackLink", $langs->transnoentitiesnoconv("FindBug")) . '</td><td>';
 print yn($conf->global->MAIN_BUGTRACK_ENABLELINK) . "</td>";
 print '<td width="20">&nbsp;</td>';
 print "</tr>";
 // Message login
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("MessageLogin") . '</td><td colspan="2">';
 if (isset($conf->global->MAIN_HOME)) {
     print dol_htmlcleanlastbr($conf->global->MAIN_HOME);
 } else {
     print '&nbsp;';
 }
 print '</td></tr>' . "\n";
 // Message of the day
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("MessageOfDay") . '</td><td colspan="2">';
 if (isset($conf->global->MAIN_MOTD)) {
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:ihm.php


示例6: dol_escape_htmltag

    // Position
    print '<tr><td>' . $langs->trans('Position') . '</td><td><input type="text" size="5" name="position" value="' . $menu->position . '"></td><td>' . $langs->trans('DetailPosition') . '</td></tr>';
    // Target
    print '<tr><td>' . $langs->trans('Target') . '</td><td><select class="flat" name="target">';
    print '<option value=""' . ($menu->target == "" ? ' selected' : '') . '>' . $langs->trans('') . '</option>';
    print '<option value="_blank"' . ($menu->target == "_blank" ? ' selected' : '') . '>' . $langs->trans('_blank') . '</option>';
    print '</select></td><td>' . $langs->trans('DetailTarget') . '</td></tr>';
    // Enabled
    print '<tr><td>' . $langs->trans('Enabled') . '</td><td><input type="text" size="60" name="enabled" value="' . dol_escape_htmltag($menu->enabled) . '"></td><td>' . $langs->trans('DetailEnabled');
    if (!empty($menu->enabled)) {
        print ' (' . $langs->trans("ConditionIsCurrently") . ': ' . yn(dol_eval($menu->enabled, 1)) . ')';
    }
    print '</td></tr>';
    // Perms
    print '<tr><td>' . $langs->trans('Rights') . '</td><td><input type="text" size="60" name="perms" value="' . dol_escape_htmltag($menu->perms) . '"></td><td>' . $langs->trans('DetailRight');
    if (!empty($menu->perms)) {
        print ' (' . $langs->trans("ConditionIsCurrently") . ': ' . yn(dol_eval($menu->perms, 1)) . ')';
    }
    print '</td></tr>';
    print '</table>';
    // Bouton
    print '<br><div class="center">';
    print '<input type="submit" class="button" name="save" value="' . $langs->trans("Save") . '">';
    print '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
    print '<input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '">';
    print '</div>';
    print '</form>';
    print '<br>';
}
$db->close();
llxFooter();
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:edit.php


示例7: isset

 if ($value == 'source') {
     $valuetoshow = isset($sourceList[$valuetoshow]) ? $sourceList[$valuetoshow] : $valuetoshow;
 } else {
     if ($valuetoshow == 'all') {
         $valuetoshow = $langs->trans('All');
     } else {
         if ($fieldlist[$field] == 'country') {
             if (empty($obj->country_code)) {
                 $valuetoshow = '-';
             } else {
                 $key = $langs->trans("Country" . strtoupper($obj->country_code));
                 $valuetoshow = $key != "Country" . strtoupper($obj->country_code) ? $obj->country_code . " - " . $key : $obj->country;
             }
         } else {
             if ($fieldlist[$field] == 'recuperableonly' || $fieldlist[$field] == 'fdm' || $fieldlist[$field] == 'deductible') {
                 $valuetoshow = yn($valuetoshow);
                 $align = "center";
             } else {
                 if ($fieldlist[$field] == 'price' || preg_match('/^amount/i', $fieldlist[$field])) {
                     $valuetoshow = price($valuetoshow);
                 } else {
                     if ($fieldlist[$field] == 'libelle_facture') {
                         $langs->load("bills");
                         $key = $langs->trans("PaymentCondition" . strtoupper($obj->code));
                         $valuetoshow = $obj->code && $key != "PaymentCondition" . strtoupper($obj->code) ? $key : $obj->{$fieldlist}[$field];
                         $valuetoshow = nl2br($valuetoshow);
                     } else {
                         if ($fieldlist[$field] == 'label' && $tabname[$id] == MAIN_DB_PREFIX . 'c_country') {
                             $key = $langs->trans("Country" . strtoupper($obj->code));
                             $valuetoshow = $obj->code && $key != "Country" . strtoupper($obj->code) ? $key : $obj->{$fieldlist}[$field];
                         } else {
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:dict.php


示例8: makeSubstitution

 /**
  * Make substitution
  * @param       text        Text to make substitution to
  * @return      string      Value of input text string with substitutions done
  */
 function makeSubstitution($text)
 {
     global $langs;
     $birthday = dol_print_date($this->naiss, 'day');
     $msgishtml = 0;
     if (dol_textishtml($text, 1)) {
         $msgishtml = 1;
     }
     $infos = '';
     if ($this->civilite_id) {
         $infos .= $langs->transnoentities("UserTitle") . ": " . $this->getCivilityLabel(1) . "\n";
     }
     $infos .= $langs->transnoentities("id") . ": " . $this->id . "\n";
     $infos .= $langs->transnoentities("Lastname") . ": " . $this->nom . "\n";
     $infos .= $langs->transnoentities("Firstname") . ": " . $this->prenom . "\n";
     $infos .= $langs->transnoentities("Company") . ": " . $this->societe . "\n";
     $infos .= $langs->transnoentities("Address") . ": " . $this->adresse . "\n";
     $infos .= $langs->transnoentities("Zip") . ": " . $this->cp . "\n";
     $infos .= $langs->transnoentities("Town") . ": " . $this->ville . "\n";
     $infos .= $langs->transnoentities("Country") . ": " . $this->pays . "\n";
     $infos .= $langs->transnoentities("EMail") . ": " . $this->email . "\n";
     $infos .= $langs->transnoentities("Login") . ": " . $this->login . "\n";
     $infos .= $langs->transnoentities("Password") . ": " . $this->pass . "\n";
     $infos .= $langs->transnoentities("Birthday") . ": " . $birthday . "\n";
     $infos .= $langs->transnoentities("Photo") . ": " . $this->photo . "\n";
     $infos .= $langs->transnoentities("Public") . ": " . yn($this->public);
     // Substitutions
     $substitutionarray = array('%DOL_MAIN_URL_ROOT%' => DOL_MAIN_URL_ROOT, '%ID%' => $msgishtml ? dol_htmlentitiesbr($this->id) : $this->id, '%INFOS%' => $msgishtml ? dol_htmlentitiesbr($infos) : $infos, '%CIVILITE%' => $this->getCivilityLabel($msgishtml ? 0 : 1), '%PRENOM%' => $msgishtml ? dol_htmlentitiesbr($this->prenom) : $this->prenom, '%NOM%' => $msgishtml ? dol_htmlentitiesbr($this->nom) : $this->nom, '%SOCIETE%' => $msgishtml ? dol_htmlentitiesbr($this->societe) : $this->societe, '%ADRESSE%' => $msgishtml ? dol_htmlentitiesbr($this->adresse) : $this->adresse, '%CP%' => $msgishtml ? dol_htmlentitiesbr($this->cp) : $this->cp, '%VILLE%' => $msgishtml ? dol_htmlentitiesbr($this->ville) : $this->ville, '%PAYS%' => $msgishtml ? dol_htmlentitiesbr($this->pays) : $this->pays, '%EMAIL%' => $msgishtml ? dol_htmlentitiesbr($this->email) : $this->email, '%NAISS%' => $msgishtml ? dol_htmlentitiesbr($birthday) : $birthday, '%PHOTO%' => $msgishtml ? dol_htmlentitiesbr($this->photo) : $this->photo, '%LOGIN%' => $msgishtml ? dol_htmlentitiesbr($this->login) : $this->login, '%PASSWORD%' => $msgishtml ? dol_htmlentitiesbr($this->pass) : $this->pass);
     complete_substitutions_array($substitutionarray, $langs);
     return make_substitutions($text, $substitutionarray);
 }
开发者ID:ripasch,项目名称:dolibarr,代码行数:36,代码来源:adherent.class.php


示例9: getToolTip

    /**
     *      \brief      Return description of module parameters
     *      \param      langs      	Output language
	 *		\param		soc			Third party object
	 *		\param		type		-1=Nothing, 0=Customer, 1=Supplier
	 *		\return		string		HTML translated description
     */
    function getToolTip($langs,$soc,$type)
    {
    	global $conf;

    	$langs->load("admin");

		$s='';
		if ($type == -1) $s.=$langs->trans("Name").': <b>'.$this->nom.'</b><br>';
		if ($type == -1) $s.=$langs->trans("Version").': <b>'.$this->getVersion().'</b><br>';
		if ($type == 0)  $s.=$langs->trans("CustomerCodeDesc").'<br>';
		if ($type == 1)  $s.=$langs->trans("SupplierCodeDesc").'<br>';
		if ($type != -1) $s.=$langs->trans("ValidityControledByModule").': <b>'.$this->getNom($langs).'</b><br>';
		$s.='<br>';
		$s.='<u>'.$langs->trans("ThisIsModuleRules").':</u><br>';
		if ($type == 0)
		{
			$s.=$langs->trans("RequiredIfCustomer").': ';
			if ($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED && !empty($this->code_null)) $s.='<strike>';
			$s.=yn(!$this->code_null,1,2);
			if ($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED && !empty($this->code_null)) $s.='</strike> '.yn(1,1,2).' ('.$langs->trans("ForcedToByAModule",$langs->transnoentities("yes")).')';
			$s.='<br>';
		}
		if ($type == 1)
		{
			$s.=$langs->trans("RequiredIfSupplier").': ';
			if ($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED && !empty($this->code_null)) $s.='<strike>';
			$s.=yn(!$this->code_null,1,2);
			if ($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED && !empty($this->code_null)) $s.='</strike> '.yn(1,1,2).' ('.$langs->trans("ForcedToByAModule",$langs->transnoentities("yes")).')';
			$s.='<br>';
		}
		if ($type == -1)
		{
			$s.=$langs->trans("Required").': ';
			if ($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED && !empty($this->code_null)) $s.='<strike>';
			$s.=yn(!$this->code_null,1,2);
			if ($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED && !empty($this->code_null)) $s.='</strike> '.yn(1,1,2).' ('.$langs->trans("ForcedToByAModule",$langs->transnoentities("yes")).')';
			$s.='<br>';
		}
		$s.=$langs->trans("CanBeModifiedIfOk").': ';
		$s.=yn($this->code_modifiable,1,2);
		$s.='<br>';
		$s.=$langs->trans("CanBeModifiedIfKo").': '.yn($this->code_modifiable_invalide,1,2).'<br>';
		$s.=$langs->trans("AutomaticCode").': '.yn($this->code_auto,1,2).'<br>';
		$s.='<br>';
		if ($type == 0 || $type == -1)
		{
			$nextval=$this->getNextValue($soc,0);
			if (empty($nextval)) $nextval=$langs->trans("Undefined");
			$s.=$langs->trans("NextValue").($type == -1?' ('.$langs->trans("Customer").')':'').': <b>'.$nextval.'</b><br>';
		}
		if ($type == 1 || $type == -1)
		{
			$nextval=$this->getNextValue($soc,1);
			if (empty($nextval)) $nextval=$langs->trans("Undefined");
			$s.=$langs->trans("NextValue").($type == -1?' ('.$langs->trans("Supplier").')':'').': <b>'.$nextval.'</b>';
		}
		return $s;
	}
开发者ID:remyyounes,项目名称:dolibarr,代码行数:65,代码来源:modules_societe.class.php


示例10: img_picto

                    // Default
                    print '<td align="center">';
                    if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF == "{$name}") {
                        print img_picto($langs->trans("Default"), 'on');
                    } else {
                        print '<a href="' . $_SERVER["PHP_SELF"] . '?action=setdoc&amp;value=' . $name . '&amp;scandir=' . $module->scandir . '&amp;label=' . urlencode($module->name) . '&amp;type=order_supplier"" 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"));
                    $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);
                    print '<td align="center">';
                    print $form->textwithpicto('', $htmltooltip, 1, 0);
                    print '</td>';
                    print '<td align="center">';
                    print '<a href="' . $_SERVER["PHP_SELF"] . '?action=specimen&amp;module=' . $name . '">' . img_object($langs->trans("Preview"), 'order') . '</a>';
                    print '</td>';
                    print "</tr>\n";
                }
            }
            closedir($handle);
        }
    }
}
print '</table><br>';
/*
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:supplier_order.php


示例11: dol_print_date

     if ((!empty($object->pass) || !empty($object->pass_crypted)) && empty($object->user_id)) {
         $langs->load("errors");
         $htmltext = $langs->trans("WarningPasswordSetWithNoAccount");
         print ' ' . $form->textwithpicto('', $htmltext, 1, 'warning');
     }
     print '</td></tr>';
 }
 print '</table>';
 print '</div>';
 print '<div class="fichehalfright"><div class="ficheaddleft">';
 print '<div class="underbanner clearboth"></div>';
 print '<table class="border tableforfield" width="100%">';
 // Birthday
 print '<tr><td>' . $langs->trans("Birthday") . '</td><td class="valeur">' . dol_print_date($object->birth, 'day') . '</td></tr>';
 // Public
 print '<tr><td>' . $langs->trans("Public") . '</td><td class="valeur">' . yn($object->public) . '</td></tr>';
 // Categories
 if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) {
     print '<tr><td>' . $langs->trans("Categories") . '</td>';
     print '<td colspan="2">';
     print $form->showCategories($object->id, 'member', 1);
     print '</td></tr>';
 }
 // Other attributes
 $parameters = array('colspan' => 2);
 $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action);
 // Note that $action and $object may have been modified by hook
 if (empty($reshook) && !empty($extrafields->attribute_label)) {
     print $object->showOptionals($extrafields, 'view', $parameters);
 }
 // Third party Dolibarr
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:card_subscriptions.php


示例12: yn

    print '<input class="button" type="submit" name="save" value="' . $langs->trans("Save") . '"' . (!count($listofmethods) ? ' disabled="disbaled"' : '') . '>';
    print ' &nbsp; &nbsp; ';
    print '<input class="button" type="submit" name="cancel" value="' . $langs->trans("Cancel") . '">';
    print '</center>';
    print '</form>';
    print '<br>';
} else {
    $var = true;
    if (!count($listofmethods)) {
        print '<div class="warning">' . $langs->trans("NoSmsEngine", '<a href="http://www.dolistore.com/search.php?orderby=position&orderway=desc&search_query=sms_manager">DoliStore</a>') . '</div>';
    }
    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre"><td>' . $langs->trans("Parameter") . '</td><td>' . $langs->trans("Value") . '</td></tr>';
    // Disable
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td>' . $langs->trans("MAIN_DISABLE_ALL_SMS") . '</td><td>' . yn($conf->global->MAIN_DISABLE_ALL_SMS) . '</td></tr>';
    // Separator
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td colspan="2">&nbsp;</td></tr>';
    // Method
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td>' . $langs->trans("MAIN_SMS_SENDMODE") . '</td><td>';
    $text = $listofmethods[$conf->global->MAIN_SMS_SENDMODE];
    if (empty($text)) {
        $text = $langs->trans("Undefined") . ' ' . img_warning();
    }
    print $text;
    print '</td></tr>';
    // From
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td>' . $langs->trans("MAIN_MAIL_SMS_FROM", $langs->transnoentities("Undefined")) . '</td>';
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:sms.php


示例13: yn

											 	$("input[name=superadmin]")
											 		.attr("disabled", true)
											 		.attr("checked", false);
											 } else {
											 	$("input[name=superadmin]")
											 		.attr("disabled", false);
											 }
										});
									});
								</script>';
                        }
                        $checked = $fuser->admin && !$fuser->entity ? ' checked' : '';
                        print '<input type="checkbox" name="superadmin" value="1"' . $checked . ' /> ' . $langs->trans("SuperAdministrator");
                    }
                } else {
                    $yn = yn($fuser->admin);
                    print '<input type="hidden" name="admin" value="' . $fuser->admin . '">';
                    if (!empty($conf->multicompany->enabled) && !$fuser->entity) {
                        print $html->textwithpicto($yn, $langs->trans("DontDowngradeSuperAdmin"), 1, 'warning');
                    } else {
                        print $yn;
                    }
                }
                print '</td></tr>';
            }
            // Type
            print '<tr><td width="25%" valign="top">' . $langs->trans("Type") . '</td>';
            print '<td>';
            if ($fuser->societe_id) {
                print $langs->trans("External");
            } else {
开发者ID:netors,项目名称:dolibarr,代码行数:31,代码来源:fiche.php


示例14: dol_trunc

     print '<td>';
     if (!empty($line->lastresult)) {
         print dol_trunc($line->lastresult);
     } else {
         print $langs->trans('CronNone');
     }
     print '</td>';
     print '<td>';
     if (!empty($line->lastoutput)) {
         print dol_trunc(nl2br($line->lastoutput), 100);
     } else {
         print $langs->trans('CronNone');
     }
     print '</td>';
     print '<td align="center">';
     print yn($line->status);
     print '</td>';
     print '<td align="right">';
     if ($user->rights->cron->delete) {
         print "<a href=\"" . $_SERVER["PHP_SELF"] . "?id=" . $line->id . "&status=" . $status . "&action=delete\" title=\"" . $langs->trans('CronDelete') . "\">" . img_delete() . "</a> &nbsp;";
     } else {
         print "<a href=\"#\" title=\"" . $langs->trans('NotEnoughPermissions') . "\">" . img_delete() . "</a> &nbsp; ";
     }
     if ($user->rights->cron->execute) {
         print "<a href=\"" . $_SERVER["PHP_SELF"] . "?id=" . $line->id . "&status=" . $status . "&action=execute\" title=\"" . $langs->trans('CronExecute') . "\">" . img_picto('', "play") . "</a>";
     } else {
         print "<a href=\"#\" title=\"" . $langs->trans('NotEnoughPermissions') . "\">" . img_picto('', "execute") . "</a>";
     }
     print '</td>';
     print '</tr>';
 }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:list.php


示例15: assign_values


//.........这里部分代码省略.........
            $this->tpl['select_customertype'] .= '<option value="3"' . ($this->object->client == 3 ? ' selected="selected"' : '') . '>' . $langs->trans('ProspectCustomer') . '</option>';
            $this->tpl['select_customertype'] .= '<option value="1"' . ($this->object->client == 1 ? ' selected="selected"' : '') . '>' . $langs->trans('Customer') . '</option>';
            $this->tpl['select_customertype'] .= '<option value="0"' . ($this->object->client == 0 ? ' selected="selected"' : '') . '>' . $langs->trans('NorProspectNorCustomer') . '</option>';
            $this->tpl['select_customertype'] .= '</select>';
            // Customer
            $this->tpl['customercode'] = $this->object->code_client;
            if ((!$this->object->code_client || $this->object->code_client == -1) && $modCodeClient->code_auto) {
                $this->tpl['customercode'] = $modCodeClient->getNextValue($this->object, 0);
            }
            $this->tpl['ismodifiable_customercode'] = $this->object->codeclient_modifiable();
            $s = $modCodeClient->getToolTip($langs, $this->object, 0);
            $this->tpl['help_customercode'] = $form->textwithpicto('', $s, 1);
            if (!empty($conf->fournisseur->enabled)) {
                $this->tpl['supplier_enabled'] = 1;
                // Load object modCodeFournisseur
                $module = $conf->global->SOCIETE_CODECLIENT_ADDON;
                if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php') {
                    $module = substr($module, 0, dol_strlen($module) - 4);
                }
                $dirsociete = array_merge(array('/core/modules/societe/'), $conf->modules_parts['societe']);
                foreach ($dirsociete as $dirroot) {
                    $res = dol_include_once($dirroot . $module . '.php');
                    if ($res) {
                        break;
                    }
                }
                $modCodeFournisseur = new $module();
                $this->tpl['auto_suppliercode'] = $modCodeFournisseur->code_auto;
                // We verified if the tag prefix is used
                if ($modCodeFournisseur->code_auto) {
                    $this->tpl['prefix_suppliercode'] = $modCodeFournisseur->verif_prefixIsUsed();
                }
                // Supplier
                $this->tpl['yn_supplier'] = $form->selectyesno("fournisseur", $this->object->fournisseur, 1);
                $this->tpl['suppliercode'] = $this->object->code_fournisseur;
                if ((!$this->object->code_fournisseur || $this->object->code_fournisseur == -1) && $modCodeFournisseur->code_auto) {
                    $this->tpl['suppliercode'] = $modCodeFournisseur->getNextValue($this->object, 1);
                }
                $this->tpl['ismodifiable_suppliercode'] = $this->object->codefournisseur_modifiable();
                $s = $modCodeFournisseur->getToolTip($langs, $this->object, 1);
                $this->tpl['help_suppliercode'] = $form->textwithpicto('', $s, 1);
                $this->object->LoadSupplierCateg();
                $this->tpl['suppliercategory'] = $this->object->SupplierCategories;
            }
            // Zip
            $this->tpl['select_zip'] = $formcompany->select_ziptown($this->object->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6);
            // Town
            $this->tpl['select_town'] = $formcompany->select_ziptown($this->object->town, 'town', array('zipcode', 'selectcountry_id', 'state_id'));
            // Country
            $this->object->country_id = $this->object->country_id ? $this->object->country_id : $mysoc->country_id;
            $this->object->country_code = $this->object->country_code ? $this->object->country_code : $mysoc->country_code;
            $this->tpl['select_country'] = $form->select_country($this->object->country_id, 'country_id');
            $countrynotdefined = $langs->trans("ErrorSetACountryFirst") . ' (' . $langs->trans("SeeAbove") . ')';
            if ($user->admin) {
                $this->tpl['info_admin'] = info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
            }
            // State
            if ($this->object->country_id) {
                $this->tpl['select_state'] = $formcompany->select_state($this->object->state_id, $this->object->country_code);
            } else {
                $this->tpl['select_state'] = $countrynotdefined;
            }
            // Language
            if (!empty($conf->global->MAIN_MULTILANGS)) {
                $this->tpl['select_lang'] = $formadmin->select_language($this->object->default_lang ? $this->object->default_lang : $conf->global->MAIN_LANG_DEFAULT, 'default_lang', 0, 0, 1);
            }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:67,代码来源:actions_card_common.class.php


示例16: member_type_prepare_head

 $head = member_type_prepare_head($object);
 dol_fiche_head($head, 'card', $langs->trans("MemberType"), 0, 'group');
 print '<table class="border" width="100%">';
 $linkback = '<a href="' . DOL_URL_ROOT . '/adherents/type.php">' . $langs->trans("BackToList") . '</a>';
 // Ref
 print '<tr><td width="15%">' . $langs->trans("Ref") . '</td>';
 print '<td>';
 print $form->showrefnav($object, 'rowid', $linkback);
 print '</td></tr>';
 // Label
 print '<tr><td width="15%">' . $langs->trans("Label") . '</td><td>' . dol_escape_htmltag($object->libelle) . '</td></tr>';
 print '<tr><td>' . $langs->trans("SubscriptionRequired") . '</td><td>';
 print yn($object->cotisation);
 print '</tr>';
 print '<tr><td>' . $langs->trans("VoteAllowed") . '</td><td>';
 print yn($object->vote);
 print '</tr>';
 print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td>';
 print nl2br($object->note) . "</td></tr>";
 print '<tr><td valign="top">' . $langs->trans("WelcomeEMail") . '</td><td>';
 print nl2br($object->mail_valid) . "</td></tr>";
 // Other attributes
 $parameters = array();
 $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $act, $action);
 // Note that $action and $object may have been modified by hook
 if (empty($reshook) && !empty($extrafields->attribute_label)) {
     // View extrafields
     print $object->showOptionals($extrafields);
 }
 print '</table>';
 dol_fiche_end();
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:type.php


示例17: yn

    // Show prof id 2 in address into pdf
    $var=!$var;
    print '<tr '.$bc[$var].'><td>'.$langs->trans("ShowProfIdInAddress").' - '.$langs->transcountry("ProfId2",$mysoc->pays_code).'</td><td>';
    print yn($conf->global->MAIN_PROFID2_IN_ADDRESS,1);
    print '</td></tr>';

    // Show prof id 3 in address into pdf
    $var=!$var;
    print '<tr '.$bc[$var].'><td>'.$langs->trans("ShowProfIdInAddress").' - '.$langs->transcountry("ProfId3",$mysoc->pays_code).'</td><td>';
    print yn($conf->global->MAIN_PROFID3_IN_ADDRESS,1);
    print '</td></tr>';

    // Show prof id 4 in address into pdf
    $var=!$var;
    print '<tr '.$bc[$var].'><td>'.$langs->trans("ShowProfIdInAddress").' - '.$langs->transcountry("ProfId4",$mysoc->pays_code).'</td><td>';
    print yn($conf->global->MAIN_PROFID4_IN_ADDRESS,1);
    print '</td></tr>';

    print '</table>'."\n";


    print '<div class="tabsAction">';
    print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=edit">'.$langs->trans("Modify").'</a>';
    print '</div>';
	print '<br>';
}


$db->close();

llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.130 $');
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:ihm.php


示例18: while

    print '<tr class="liste_titre">';
    print '<td>' . $langs->trans("Line") . '</td><td>' . $langs->trans("ThirdParty") . '</td><td align="right">' . $langs->trans("Amount") . '</td>';
    print '<td>' . $langs->trans("Reason") . '</td><td align="center">' . $langs->trans("ToBill") . '</td><td align="center">' . $langs->trans("Invoice") . '</td></tr>';
    $var = True;
    $total = 0;
    while ($i < $num) {
        $obj = $db->fetch_object($resql);
        print "<tr {$bc[$var]}><td>";
        print '<img border="0" src="./img/statut' . $obj->statut . '.png"></a>&nbsp;';
        print '<a href="' . DOL_URL_ROOT . '/compta/prelevement/ligne.php?id=' . $obj->rowid . '">';
        print substr('000000' . $obj->rowid, -6);
        print '</a></td>';
        print '<td><a href="' . DOL_URL_ROOT . '/comm/fiche.php?socid=' . $obj->socid . '">' . stripslashes($obj->nom) . "&l 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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