本文整理汇总了PHP中img_up函数的典型用法代码示例。如果您正苦于以下问题:PHP img_up函数的具体用法?PHP img_up怎么用?PHP img_up使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了img_up函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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' => '<', 'picto_suivant' => '>', '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);
}
示例2: preg_replace
$htmltext = '<b>' . $langs->trans("Name") . ":</b> " . $text . '<br>';
$htmltext .= '<b>' . $langs->trans("Table") . " -> " . $langs->trans("Field") . ":</b> " . $tablename . " -> " . preg_replace('/^.*\\./', '', $code) . "<br>";
if (!empty($objexport->array_export_examplevalues[0][$code])) {
$htmltext .= $langs->trans("SourceExample") . ': <b>' . $objexport->array_export_examplevalues[0][$code] . '</b><br>';
}
print $form->textwithpicto($text, $htmltext);
//print ' ('.$code.')';
print '</td>';
print '<td align="right" width="100">';
print $value . ' ';
print '</td><td align="center" width="20">';
if ($value < count($array_selected)) {
print '<a href="' . $_SERVER["PHP_SELF"] . '?step=' . $step . '&datatoexport=' . $datatoexport . '&action=downfield&field=' . $code . '">' . img_down() . '</a>';
}
if ($value > 1) {
print '<a href="' . $_SERVER["PHP_SELF"] . '?step=' . $step . '&datatoexport=' . $datatoexport . '&action=upfield&field=' . $code . '">' . img_up() . '</a>';
}
print '</td>';
//print '<td> </td>';
//print '<td>'.$langs->trans($objexport->array_export_fields[0][$code]).'</td>';
print '</tr>';
}
print '</table>';
print '</div>';
/*
* Barre d'action
*
*/
print '<div class="tabsAction">';
if (count($array_selected)) {
print '<a class="butAction" href="export.php?step=' . ($step + 1) . '&datatoexport=' . $datatoexport . '">' . $langs->trans("NextStep") . '</a>';
示例3: img_edit
// Icone d'edition et suppression
if ($object->statut == 0 && $user->rights->ficheinter->creer) {
print '<td align="center">';
print '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=editline&line_id=' . $objp->rowid . '#' . $objp->rowid . '">';
print img_edit();
print '</a>';
print '</td>';
print '<td align="center">';
print '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=ask_deleteline&line_id=' . $objp->rowid . '">';
print img_delete();
print '</a></td>';
if ($num > 1) {
print '<td align="center">';
if ($i > 0) {
print '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=up&line_id=' . $objp->rowid . '">';
print img_up();
print '</a>';
}
if ($i < $num - 1) {
print '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=down&line_id=' . $objp->rowid . '">';
print img_down();
print '</a>';
}
print '</td>';
}
} else {
print '<td colspan="3"> </td>';
}
print '</tr>';
$line = new FichinterLigne($db);
$line->fetch($objp->rowid);
示例4: img_up
<?php
if ($num > 1 && empty($conf->browser->phone) && ($this->situation_counter == 1 || !$this->situation_cycle_ref)) {
?>
<td align="center" class="linecolmove tdlineupdown"><?php
$coldisplay++;
?>
<?php
if ($i > 0) {
?>
<a class="lineupdown" href="<?php
echo $_SERVER["PHP_SELF"] . '?id=' . $this->id . '&action=up&rowid=' . $line->id;
?>
">
<?php
echo img_up('default', 0, 'imgupforline');
?>
</a>
<?php
}
?>
<?php
if ($i < $num - 1) {
?>
<a class="lineupdown" href="<?php
echo $_SERVER["PHP_SELF"] . '?id=' . $this->id . '&action=down&rowid=' . $line->id;
?>
">
<?php
echo img_down('default', 0, 'imgdownforline');
?>
示例5: img_up
<?php
if ($num > 1 && empty($conf->browser->phone)) {
?>
<td align="center" class="tdlineupdown"><?php
$coldisplay++;
?>
<?php
if ($i > 0) {
?>
<a class="lineupdown" href="<?php
echo $_SERVER["PHP_SELF"] . '?id=' . $this->id . '&action=up&rowid=' . $line->id;
?>
">
<?php
echo img_up();
?>
</a>
<?php
}
?>
<?php
if ($i < $num - 1) {
?>
<a class="lineupdown" href="<?php
echo $_SERVER["PHP_SELF"] . '?id=' . $this->id . '&action=down&rowid=' . $line->id;
?>
">
<?php
echo img_down();
?>
示例6: print_liste_field_titre
/**
* Show title line of an array
* @param name Label of field
* @param file Url used when we click on sort picto
* @param field Field to use for new sorting
* @param begin ("" by defaut)
* @param moreparam Add more parameters on sort url links ("" by default)
* @param td Options of attribute td ("" by defaut)
* @param sortfield Current field used to sort
* @param sortorder Current sort order
*/
function print_liste_field_titre($name, $file = "", $field = "", $begin = "", $moreparam = "", $td = "", $sortfield = "", $sortorder = "")
{
global $conf;
//print "$name, $file, $field, $begin, $options, $td, $sortfield, $sortorder<br>\n";
// Le champ de tri est mis en evidence.
// Exemple si (sortfield,field)=("nom","xxx.nom") ou (sortfield,field)=("nom","nom")
if ($field && ($sortfield == $field || $sortfield == preg_replace("/^[^\\.]+\\./", "", $field))) {
print '<td class="liste_titre_sel" ' . $td . '>';
} else {
print '<td class="liste_titre" ' . $td . '>';
}
print $name;
// If this is a sort field
if ($field) {
$options = preg_replace('/sortfield=([a-zA-Z0-9,\\s\\.]+)/i', '', $moreparam);
$options = preg_replace('/sortorder=([a-zA-Z0-9,\\s\\.]+)/i', '', $options);
$options = preg_replace('/&+/i', '&', $options);
if (!preg_match('/^&/', $options)) {
$options = '&' . $options;
}
//print " ";
print '<img width="2" src="' . DOL_URL_ROOT . '/theme/common/transparent.png" alt="">';
if (!$sortorder) {
print '<a href="' . $file . '?sortfield=' . $field . '&sortorder=asc&begin=' . $begin . $options . '">' . img_down("A-Z", 0) . '</a>';
print '<a href="' . $file . '?sortfield=' . $field . '&sortorder=desc&begin=' . $begin . $options . '">' . img_up("Z-A", 0) . '</a>';
} else {
if ($field != $sortfield) {
print '<a href="' . $file . '?sortfield=' . $field . '&sortorder=asc&begin=' . $begin . $options . '">' . img_down("A-Z", 0) . '</a>';
print '<a href="' . $file . '?sortfield=' . $field . '&sortorder=desc&begin=' . $begin . $options . '">' . img_up("Z-A", 0) . '</a>';
} else {
$sortorder = strtoupper($sortorder);
if ($sortorder == 'DESC') {
print '<a href="' . $file . '?sortfield=' . $field . '&sortorder=asc&begin=' . $begin . $options . '">' . img_down("A-Z", 0) . '</a>';
print '<a href="' . $file . '?sortfield=' . $field . '&sortorder=desc&begin=' . $begin . $options . '">' . img_up("Z-A", 1) . '</a>';
}
if ($sortorder == 'ASC') {
print '<a href="' . $file . '?sortfield=' . $field . '&sortorder=asc&begin=' . $begin . $options . '">' . img_down("A-Z", 1) . '</a>';
print '<a href="' . $file . '?sortfield=' . $field . '&sortorder=desc&begin=' . $begin . $options . '">' . img_up("Z-A", 0) . '</a>';
}
}
}
}
print "</td>";
}
示例7: img_warning
print '</td>';
print '<td>';
if ($box->note == '(WarningUsingThisBoxSlowDown)') {
$langs->load("errors");
print img_warning('', 0) . ' ' . $langs->trans("WarningUsingThisBoxSlowDown");
} else {
print $box->note ? $box->note : ' ';
}
print '</td>';
print '<td align="center">' . (empty($pos_name[$box->position]) ? '' : $langs->trans($pos_name[$box->position])) . '</td>';
$hasnext = $key < count($boxactivated) - 1;
$hasprevious = $key != 0;
print '<td align="center">' . ($key + 1) . '</td>';
print '<td align="center">';
print $hasnext ? '<a href="boxes.php?action=switch&switchfrom=' . $box->rowid . '&switchto=' . $boxactivated[$key + 1]->rowid . '">' . img_down() . '</a> ' : '';
print $hasprevious ? '<a href="boxes.php?action=switch&switchfrom=' . $box->rowid . '&switchto=' . $boxactivated[$key - 1]->rowid . '">' . img_up() . '</a>' : '';
print '</td>';
print '<td align="center">';
print '<a href="boxes.php?rowid=' . $box->rowid . '&action=delete">' . img_delete() . '</a>';
print '</td>';
print '</tr>' . "\n";
}
print '</table><br>';
// Other parameters
print "\n\n" . '<!-- Other Const -->' . "\n";
print_titre($langs->trans("Other"));
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="addconst">';
print '<table class="noborder" width="100%">';
$var = false;
示例8: img_down
print '<td>' . ($obj->note ? $obj->note : ' ') . '</td>';
print '<td align="center">' . $pos_name[$obj->position] . '</td>';
$hasnext = true;
$hasprevious = true;
if ($foundrupture) {
$hasprevious = false;
$foundrupture = 0;
}
if (!$objnext || $obj->position != $objnext->position) {
$hasnext = false;
$foundrupture = 1;
}
print '<td align="center">' . $box_order . '</td>';
print '<td align="center">';
print $hasnext ? '<a href="boxes.php?action=switch&switchfrom=' . $obj->rowid . '&switchto=' . $objnext->rowid . '">' . img_down() . '</a> ' : '';
print $hasprevious ? '<a href="boxes.php?action=switch&switchfrom=' . $obj->rowid . '&switchto=' . $objprevious->rowid . '">' . img_up() . '</a>' : '';
print '</td>';
print '<td align="center">';
print '<a href="boxes.php?rowid=' . $obj->rowid . '&action=delete">' . img_delete() . '</a>';
print '</td>';
print '</tr>' . "\n";
$i++;
$box_order++;
if (!$foundrupture) {
$objprevious = $obj;
} else {
$box_order = 1;
}
$obj = $objnext;
}
$db->free($resql);
示例9: img_edit
<?php echo img_edit(); ?>
</a>
<?php } ?>
</td>
<td align="center">
<a href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=ask_deleteline&lineid='.$line->id; ?>">
<?php echo img_delete(); ?>
</a>
</td>
<?php if ($num > 1) { ?>
<td align="center" class="tdlineupdown">
<?php if ($i > 0) { ?>
<a class="lineupdown" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=up&rowid='.$line->id; ?>">
<?php echo img_up(); ?>
</a>
<?php } ?>
<?php if ($i < $num-1) { ?>
<a class="lineupdown" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->id.'&action=down&rowid='.$line->id; ?>">
<?php echo img_down(); ?>
</a>
<?php } ?>
</td>
<?php } else { ?>
<td align="center" class="tdlineupdown"> </td>
<?php } ?>
<?php } else { ?>
<td colspan="3"> </td>
<?php } ?>
示例10: getTitleFieldOfList
/**
* Get title line of an array
*
* @param string $name Label of field
* @param int $thead 0=To use with standard table forat, 1=To use inside <thead><tr>, 2=To use with <div>
* @param string $file Url used when we click on sort picto
* @param string $field Field to use for new sorting. Empty if this field is not sortable.
* @param string $begin ("" by defaut)
* @param string $moreparam Add more parameters on sort url links ("" by default)
* @param string $moreattrib Add more attributes on th ("" by defaut)
* @param string $sortfield Current field used to sort
* @param string $sortorder Current sort order
* @return string
*/
function getTitleFieldOfList($name, $thead = 0, $file = "", $field = "", $begin = "", $moreparam = "", $moreattrib = "", $sortfield = "", $sortorder = "")
{
global $conf;
//print "$name, $file, $field, $begin, $options, $moreattrib, $sortfield, $sortorder<br>\n";
$sortorder = strtoupper($sortorder);
$out = '';
$tag = 'th';
if ($thead == 2) {
$tag = 'div';
}
// If field is used as sort criteria we use a specific class
// Example if (sortfield,field)=("nom","xxx.nom") or (sortfield,field)=("nom","nom")
if ($field && ($sortfield == $field || $sortfield == preg_replace("/^[^\\.]+\\./", "", $field))) {
$out .= '<' . $tag . ' class="liste_titre_sel" ' . $moreattrib . '>';
} else {
$out .= '<' . $tag . ' class="liste_titre" ' . $moreattrib . '>';
}
if (!empty($conf->dol_optimize_smallscreen) && empty($thead) && $field) {
$options = preg_replace('/sortfield=([a-zA-Z0-9,\\s\\.]+)/i', '', $moreparam);
$options = preg_replace('/sortorder=([a-zA-Z0-9,\\s\\.]+)/i', '', $options);
$options = preg_replace('/&+/i', '&', $options);
if (!preg_match('/^&/', $options)) {
$options = '&' . $options;
}
if ($sortorder == 'DESC') {
$out .= '<a href="' . $file . '?sortfield=' . $field . '&sortorder=asc&begin=' . $begin . $options . '">';
}
if ($sortorder == 'ASC') {
$out .= '<a href="' . $file . '?sortfield=' . $field . '&sortorder=desc&begin=' . $begin . $options . '">';
}
}
$out .= $name;
if (!empty($conf->dol_optimize_smallscreen) && empty($thead) && $field) {
$out .= '</a>';
}
if (empty($conf->dol_optimize_smallscreen) && empty($thead) && $field) {
$options = preg_replace('/sortfield=([a-zA-Z0-9,\\s\\.]+)/i', '', $moreparam);
$options = preg_replace('/sortorder=([a-zA-Z0-9,\\s\\.]+)/i', '', $options);
$options = preg_replace('/&+/i', '&', $options);
if (!preg_match('/^&/', $options)) {
$options = '&' . $options;
}
//print " ";
$out .= '<img width="2" src="' . DOL_URL_ROOT . '/theme/common/transparent.png" alt=""><span class="nowrap">';
if (!$sortorder || $field != $sortfield) {
$out .= '<a href="' . $file . '?sortfield=' . $field . '&sortorder=asc&begin=' . $begin . $options . '">' . img_down("A-Z", 0) . '</a>';
$out .= '<a href="' . $file . '?sortfield=' . $field . '&sortorder=desc&begin=' . $begin . $options . '">' . img_up("Z-A", 0) . '</a>';
} else {
if ($sortorder == 'DESC') {
$out .= '<a href="' . $file . '?sortfield=' . $field . '&sortorder=asc&begin=' . $begin . $options . '">' . img_down("A-Z", 0) . '</a>';
$out .= '<a href="' . $file . '?sortfield=' . $field . '&sortorder=desc&begin=' . $begin . $options . '">' . img_up("Z-A", 1) . '</a>';
}
if ($sortorder == 'ASC') {
$out .= '<a href="' . $file . '?sortfield=' . $field . '&sortorder=asc&begin=' . $begin . $options . '">' . img_down("A-Z", 1) . '</a>';
$out .= '<a href="' . $file . '?sortfield=' . $field . '&sortorder=desc&begin=' . $begin . $options . '">' . img_up("Z-A", 0) . '</a>';
}
}
$out .= '</span>';
}
$out .= '</' . $tag . '>';
return $out;
}
示例11: preg_replace
if (preg_match('/^([^@]+)@([^@]+)$/i', $box->boximg)) {
$logo = $box->boximg;
} else {
$logo = preg_replace("/^object_/i", "", $box->boximg);
}
print "\n" . '<!-- Box ' . $box->boxcode . ' -->' . "\n";
print '<tr ' . $bc[$var] . '>';
print '<td>' . img_object("", $logo) . ' ' . $box->boxlabel . '</td>';
print '<td>' . ($box->note ? $box->note : ' ') . '</td>';
print '<td align="center">' . (isset($pos_name[$box->position]) ? $pos_name[$box->position] : '') . '</td>';
$hasnext = $key < count($boxactivated) - 1;
$hasprevious = $key != 0;
print '<td align="center">' . ($key + 1) . '</td>';
print '<td align="center">';
print $hasnext ? '<a href="' . $_SERVER['PHP_SELF'] . '?action=switch&switchfrom=' . $box->rowid . '&switchto=' . $boxactivated[$key + 1]->rowid . '">' . img_down() . '</a> ' : '';
print $hasprevious ? '<a href="' . $_SERVER['PHP_SELF'] . '?action=switch&switchfrom=' . $box->rowid . '&switchto=' . $boxactivated[$key - 1]->rowid . '">' . img_up() . '</a>' : '';
print '</td>';
print '<td align="center">';
print '<a href="' . $_SERVER['PHP_SELF'] . '?rowid=' . $box->rowid . '&action=delete">' . img_delete() . '</a>';
print '</td>';
print '</tr>' . "\n";
}
print '</table><br>';
// Other parameters
print_titre($langs->trans("Other"));
print '<table class="noborder" width="100%">';
$var = false;
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="addconst">';
print '<tr class="liste_titre">';