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


PHP iconHTML函数代码示例

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


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

示例1: templateIconHtml

function templateIconHtml($params, &$smarty)
{
    if (isset($params['ico'])) {
        $ico = $params['ico'];
    } else {
        $ico = '';
    }
    if (isset($params['end'])) {
        $end = $params['end'];
    } else {
        $end = '.png';
    }
    if (isset($params['extra'])) {
        $extra = ' ' . $params['extra'];
    } else {
        $extra = '';
    }
    return iconHTML($ico, $end, $extra);
}
开发者ID:hnJaermuseet,项目名称:Infoskjerm-Vitenfabrikken,代码行数:19,代码来源:infoskjerm.php

示例2: __

            echo 'F&oslash;lgende data var tilstede ved sletting:<br />';
        }
        if ($thislog['log_action2'] == 'entry_undeleted') {
            echo 'F&oslash;lgende data var tilstede ved gjenoppretting:<br />';
        }
        echo '<a href="javascript:switchView(' . $thislog['log_id'] . ');" id="switchlink' . $thislog['log_id'] . '">' . __("hide") . '</a>' . chr(10);
        echo '<div id="log' . $thislog['log_id'] . '">' . chr(10);
        echo ' <ul>' . chr(10);
        echo printEntryLog($thislog, TRUE);
        echo ' </ul>' . chr(10);
        echo '</div>' . chr(10);
        echo '<script type="text/javascript">switchView(' . $thislog['log_id'] . ');</script>' . chr(10);
    }
    echo '</td>' . chr(10);
    echo ' </tr>' . chr(10);
}
echo '</table>' . chr(10);
echo '<h2>Handlinger</h2>';
echo '<span style="font-size: 16px;">';
if (!$deleted) {
    echo '<a href="entry_delete.php?entry_id=' . $entry['entry_id'] . '">' . iconHTML('page_white_delete') . ' Slett booking</a></span><br>' . '&nbsp;&nbsp;&nbsp;(Dette er ikke permanent. Den legges kun i et eget arkiv for slettede bookinger. Kan gjenopprettes igjen.)';
} else {
    echo '<a href="entry_delete.php?entry_id=' . $entry['entry_id'] . '&amp;undelete=1">' . iconHTML('page_white_get') . ' Gjenopprett booking</a></span><br>';
}
echo '</td></tr></table>';
debugAddToLog(__FILE__, __LINE__, 'entry.php finished');
debugPrintLog();
?>

<?php 
echo debugPrintTimeTotal();
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:entry.php

示例3: iconHTML

     $deactivated2 = '';
 }
 echo '		<td class="' . $deactivated . '">' . $user['user_id'] . '</td>';
 echo '		<td class="' . $deactivated . '">' . '<a href="user.php?user_id=' . $user['user_id'] . '" class="' . $deactivated2 . '">' . iconHTML('user') . ' ' . $user['user_name'] . '</a>' . '</td>' . chr(10);
 echo '		<td class="' . $deactivated . '">' . $user['user_name_short'] . '</td>' . chr(10);
 echo '		<td class="' . $deactivated . '">' . '<div class="showButton" id="buttonId' . $user['user_id'] . '"><a href="javascript:void();" class="' . $deactivated2 . '">Vis / Ikke vis</a></div>' . '<div class="showField" id="fieldId' . $user['user_id'] . '" style="display:none;">' . 'Telefon: ' . $user['user_phone'] . '<br>' . 'E-post: ' . $user['user_email'] . '<br>' . 'Stilling: ' . $user['user_position'] . '<br>';
 $area_user = getArea($user['user_area_default']);
 if (!count($area_user)) {
     $area_user['area_name'] = 'IKKE FUNNET';
 }
 echo __('Default area') . ': ' . $area_user['area_name'];
 '</div></td>' . chr(10);
 echo '		<td class="' . $deactivated . '">';
 if ($login['user_access_useredit'] || $login['user_id'] == $user['user_id']) {
     echo '<a href="' . $_SERVER['PHP_SELF'] . '?editor=1&amp;id=' . $user['user_id'] . '" class="' . $deactivated2 . '">' . iconHTML('user_edit') . ' ' . 'Endre&nbsp;bruker</a><br />';
     echo '<a href="admin_user_password.php?id=' . $user['user_id'] . '" class="' . $deactivated2 . '">' . iconHTML('lock_edit') . ' ' . 'Endre&nbsp;passord</a>';
 } else {
     echo '&nbsp;';
 }
 echo '</td>' . chr(10);
 echo '		<td>';
 if (count($user) && !$user['deactivated'] && count($user['groups'])) {
     echo '<ul style="margin: 0;">' . chr(10);
     foreach ($user['groups'] as $gid) {
         $group = getGroup($gid);
         if (count($group)) {
             echo '<li>' . $group['group_name'] . '</li>' . chr(10);
         }
     }
     echo '</ul>' . chr(10);
 }
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:admin_user2.php

示例4: iconHTML

echo '<tr>
	<td align="right">' . iconHTML('monitor') . ' <b>' . _('Text on infoscreen') . ':</b> </td>
	<td>' . $entry['infoscreen_txt'] . '</td>
</tr>' . chr(10);
echo '<tr>
	<td align="right">' . iconHTML('monitor') . ' <b>' . _('Preview infoscreen') . ':</b> </td>
	<td><a href="infoskjerm.php?area=' . $entry['area_id'] . '&amp;date=' . date('d.m.Y', $entry['time_start']) . '">' . _('Preview this evening for the current area') . ' *</td>
</tr>' . chr(10);
echo '<tr>
	<td colspan="2">* ' . _('Will only show if the event is after 16.00.') . '</td>
</tr>' . chr(10);
echo '<tr><td colspan="2"><br>' . chr(10);
echo '<font size="3"><b>' . _('Invoice') . '</b></font>' . chr(10);
echo '</td></tr>' . chr(10) . chr(10);
echo '<tr>
	<td align="right">' . iconHTML('coins') . ' <b>' . _('Invoice') . '?</b> </td>
	<td>';
if ($entry['invoice']) {
    echo _('yes');
} else {
    echo _('no');
}
echo '</td>
</tr>' . chr(10);
echo '<tr>
	<td align="right"><b>' . _('Invoice status') . ':</b> </td>
	<td>';
switch ($entry['invoice_status']) {
    case '0':
        echo _('not to be made');
        break;
开发者ID:HNygard,项目名称:JM-booking,代码行数:31,代码来源:entry_old-081216.php

示例5: foreach

                }
            }
            echo '<br /><br /></span>';
        }
        echo '<h1>Booking ' . '<a href="entry.php?entry_id=' . $id . '">' . $id . '</a>' . ' har feil med fakturagrunnlaget</h1>';
        echo '<div class="error" style="width: 500px;"><ul style="padding-left: 20px; margin: 0px;">';
        foreach ($checkInvoice[0] as $error) {
            echo '<li>' . $error . '</li>';
        }
        echo '</ul></div>';
    }
}
if ($entry_errors) {
    echo '<h1>Feilmeldingene over må rettes før det kan sendes til regnskap</h1>';
    echo '<p style="font-size: 1.4em; margin: 10px;">' . iconHTML('arrow_right') . ' Endre bookingen(e) (trykk på bookingnr over)</p>';
    echo '<p style="font-size: 1.4em; margin: 10px;">' . iconHTML('arrow_right') . ' <a href="' . $redirect . '">Gå tilbake til listen over faktureringsklare bookinger</a></p><br />';
    echo 'Du kan også sette den klar til fakturering, men det blir kanskje bare å skyve problemene videre på noen andre/utsette de<br />';
    echo '- <a href="' . $_SERVER['PHP_SELF'] . '?' . implode('&amp;', $entry_ids_url) . '&amp;ignore_errors=1">Sett til status "sendt til regnskap"</a><br>';
}
if (!$entry_errors) {
    if (!count($entries)) {
        header('Location: ' . $redirect);
        exit;
    }
    mysql_query("\n\t\tINSERT INTO `invoiced` (\n\t\t\t\t`invoiced_id` ,\n\t\t\t\t`created` ,\n\t\t\t\t`emailed` ,\n\t\t\t\t`emailed_time` ,\n\t\t\t\t`pdf_name`\n\t\t\t)\n\t\t\tVALUES (\n\t\t\t\tNULL , \n\t\t\t\t'" . time() . "', \n\t\t\t\t'0', \n\t\t\t\t'0', \n\t\t\t\t''\n\t\t\t);");
    $invoiced_id = mysql_insert_id();
    if ($invoiced_id <= 0) {
        echo '$invoiced_id not correct. File: ' . __FILE__ . ' Line: ' . __LINE__;
        exit;
    }
    $pdf_invoicedata = array();
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:invoice_export.php

示例6: chr

     echo '		<td>' . $user['user_name_short'] . '</td>' . chr(10);
     echo '		<td>' . iconHTML('lock') . ' ' . $user['user_accesslevel'] . '</td>' . chr(10);
     echo '		<td>' . '<div class="showButton" id="buttonId' . $user['user_id'] . '"><a href="javascript:void();">Vis / Ikke vis</a></div>' . '<div class="showField" id="fieldId' . $user['user_id'] . '" style="display:none;">' . 'Telefon: ' . $user['user_phone'] . '<br>' . 'E-post: ' . $user['user_email'] . '<br>' . 'Stilling: ' . $user['user_position'] . '<br>';
     $area_user = getArea($user['user_area_default']);
     if (!count($area_user)) {
         $area_user['area_name'] = 'IKKE FUNNET';
     }
     echo 'Standard bygg: ' . $area_user['area_name'] . '<br>';
     echo 'Fakturatilgang: ';
     if ($user['user_invoice']) {
         echo 'ja';
     } else {
         echo 'nei';
     }
     '</div></td>' . chr(10);
     echo '		<td>' . '<a href="' . $_SERVER['PHP_SELF'] . '?editor=1&amp;id=' . $user['user_id'] . '">' . iconHTML('user_edit') . ' ' . 'Endre</a>' . '</td>' . chr(10);
     echo '		<td>';
     if (count($user) && count($user['groups'])) {
         echo '<ul style="margin: 0;">' . chr(10);
         foreach ($user['groups'] as $gid) {
             $group = getGroup($gid);
             if (count($group)) {
                 echo '<li>' . $group['group_name'] . '</li>' . chr(10);
             }
         }
         echo '</ul>' . chr(10);
     }
     echo '</td>' . chr(10);
     echo '	</tr>' . chr(10) . chr(10);
     //echo '- <br>'.chr(10);
 }
开发者ID:HNygard,项目名称:JM-booking,代码行数:31,代码来源:admin_user2.php

示例7: chr

        } else {
            $namelink = false;
        }
        if ($namelink && ($template[6] == '' || $login[$template[6]])) {
            echo '<td>' . '<img src="./img/icons/' . $template[4] . '" style="border: 0px solid black; vertical-align: middle;"> ' . '<a href="' . $_SERVER['PHP_SELF'] . '?template_file=' . $template[1] . '">' . $template[0] . '</a>' . '</td>';
        } else {
            echo '		<td>' . '<img src="./img/icons/' . $template[4] . '" style="border: 0px solid black; vertical-align: middle;"> ';
            if ($template[6] == '' || $login[$template[6]]) {
                echo '<a href="' . $_SERVER['PHP_SELF'] . '?template_file=' . $template[1] . '&amp;view=1">' . $template[0] . '</a></td>' . chr(10);
            } else {
                echo $template[0] . '</td>' . chr(10);
            }
        }
        echo '		<td>';
        if (!$namelink && ($template[6] == '' || $login[$template[6]])) {
            echo '<a href="' . $_SERVER['PHP_SELF'] . '?template_file=' . $template[1] . '">' . iconHTML('layout_edit') . ' ' . __('Edit') . '</a>';
        } else {
            echo '&nbsp;';
        }
        if ($template[5] && ($template[6] == '' || $login[$template[6]])) {
            echo ' -:- <a href="' . $_SERVER['PHP_SELF'] . '?template_delete=1&amp;template_file=' . $template[1] . '">' . ' <img src="./img/icons/layout_delete.png" style="border: 0px solid black; vertical-align: middle;"> ' . __('Delete') . '</a>';
        } else {
            echo '&nbsp;';
        }
        echo '</td>' . chr(10);
        echo '	</tr>' . chr(10) . chr(10);
    }
    exit;
}
// Checking filename
if (!array_key_exists($_GET['template_file'], $allowed_templatefiles)) {
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:admin_template.php

示例8: chr

    echo '<ul>' . chr(10);
    while ($R = mysql_fetch_assoc($Q_groups)) {
        echo '<li><a href="' . $_SERVER['PHP_SELF'] . '?gid=' . $R['group_id'] . '">' . $R['group_name'] . '</a></li>';
    }
    echo '</ul>' . chr(10);
    echo '<b>Alle brukere</b><br />';
    echo '<table class="prettytable">' . chr(10);
    echo '	<tr>' . chr(10);
    echo '		<th>Navn</th>' . chr(10);
    echo '		<th>Initialer</th>' . chr(10);
    echo '		<th>Anlegg</th>' . chr(10);
    echo '	</tr>' . chr(10) . chr(10);
    while ($R_user = mysql_fetch_assoc($Q_users)) {
        $user = getUser($R_user['user_id'], true);
        echo '	<tr>' . chr(10);
        echo '		<td>' . '<a href="user.php?user_id=' . $user['user_id'] . '">' . iconHTML('user') . ' ' . $user['user_name'] . '</a>' . '</td>' . chr(10);
        echo '		<td>' . $user['user_name_short'] . '</td>' . chr(10);
        echo '		<td>';
        $area_user = getArea($user['user_area_default']);
        if (!count($area_user)) {
            $area_user['area_name'] = '';
        }
        echo $area_user['area_name'];
        echo '</td>' . chr(10);
        echo '	</tr>' . chr(10) . chr(10);
    }
    echo '</table>' . chr(10);
} else {
    $group = getGroup($_GET['gid']);
    if (count($group)) {
        echo '<b>Viser brukergruppen ' . $group['group_name'] . '</b><br />' . chr(10);
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:user_list.php

示例9: iconFiletype

function iconFiletype($extention)
{
    $filename = iconFiletypeFilename($extention);
    $fileending = '.gif';
    return iconHTML($filename, $fileending);
}
开发者ID:HNygard,项目名称:JM-booking,代码行数:6,代码来源:functions.inc.php

示例10: chr

    echo '	</tr>' . chr(10) . chr(10);
    while ($R_program = mysql_fetch_assoc($Q_programs)) {
        echo '	<tr>' . chr(10);
        echo '		<td><b>' . $R_program['program_id'] . '</b></td>' . chr(10);
        echo '		<td>' . iconHTML('package') . ' ' . $R_program['program_name'] . '</td>' . chr(10);
        echo '		<td>' . nl2br($R_program['program_desc']) . '</td>' . chr(10);
        echo '		<td>';
        $Q_area = mysql_query("select * from `mrbs_area` where id = '" . $R_program['area_id'] . "'");
        if (!mysql_num_rows($Q_area)) {
            echo '<i>' . _('Not found') . '</i>';
        } else {
            echo iconHTML('house') . ' ' . mysql_result($Q_area, 0, 'area_name');
        }
        echo '</td>' . chr(10);
        // Attachments
        echo '		<td>';
        $Q_att = mysql_query("\n\t\t\tSELECT\n\t\t\t\ta.att_filetype, a.att_filename_orig, a.att_filesize, a.att_id\n\t\t\tFROM `programs_defaultattachment` p LEFT JOIN `entry_confirm_attachment` a \n\t\t\t\tON p.att_id = a.att_id\n\t\t\tWHERE\n\t\t\t\tp.program_id = '" . $R_program['program_id'] . "'\n\t\t\tORDER BY a.att_filename_orig");
        while ($att = mysql_fetch_assoc($Q_att)) {
            echo '<a href="admin_attachment.php?att_id=' . $att['att_id'] . '">' . iconFiletype($att['att_filetype']) . ' ' . $att['att_filename_orig'] . '</a>' . ' (' . smarty_modifier_file_size($att['att_filesize']) . ')<br>';
        }
        echo '</td>' . chr(10);
        // Options
        echo '		<td>';
        if (authGetUserLevel(getUserID()) >= $user_level) {
            echo '<a href="' . $_SERVER['PHP_SELF'] . '?editor=1&amp;id=' . $R_program['program_id'] . '">' . iconHTML('package_go') . ' ' . _('Edit') . '</a> -:- ';
        }
        echo '<a href="' . $_SERVER['PHP_SELF'] . '?program_id=' . $R_program['program_id'] . '">' . iconHTML('package_link') . ' ' . 'Endre vedlegg</a>';
        echo '</td>' . chr(10);
        echo '	</tr>' . chr(10) . chr(10);
    }
}
开发者ID:HNygard,项目名称:JM-booking,代码行数:31,代码来源:admin_programs.php

示例11: foreach

foreach ($filters as $filter) {
    if ($filter[0] == 'tamed_booking') {
        $tamed_booking = $filter[1];
    }
}
if (!$tamed_booking || !mysql_num_rows($Q)) {
    echo __('No entries found.');
} else {
    echo mysql_num_rows($Q) . ' ' . __('entries found.');
    //echo '<br><br>'.chr(10).chr(10);
    echo '<table class="prettytable">' . chr(10);
    echo ' <tr>' . chr(10);
    if ($listtype == 'customer_list') {
        echo '  <th style="vertical-align: bottom;">' . iconHTML('group') . '&nbsp;Kundenavn</th>' . chr(10);
        echo '  <th style="vertical-align: bottom;">' . iconHTML('user_small') . '&nbsp;B&nbsp;/&nbsp;' . iconHTML('user_suit') . '&nbsp;V</th>' . chr(10);
        echo '  <th style="vertical-align: bottom;">' . iconHTML('page_white') . '&nbsp;Antall booking</th>' . chr(10);
        $customer_list = array();
        $customer_names = array();
    } else {
        echo '  <th style="vertical-align: bottom;">' . __('Starts') . '</th>' . chr(10);
        echo '  <th style="vertical-align: bottom;">' . __('Ends') . '</th>' . chr(10);
        echo '  <th style="vertical-align: bottom;">' . __('C/A') . '</th>' . chr(10);
        echo '  <th style="vertical-align: bottom;">' . __('Entry type') . '</th>' . chr(10);
        echo '  <th style="vertical-align: bottom;">' . __('Name') . '</th>' . chr(10);
        if ($listtype == 'servering') {
            echo '  <th style="vertical-align: bottom;">Alkohol?</th>' . chr(10);
            echo '  <th style="vertical-align: bottom;">' . __('Service description') . '</th>' . chr(10);
        }
        echo '  <th style="vertical-align: bottom;">' . __('Room') . '</th>' . chr(10);
    }
    echo ' </tr>' . chr(10);
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:entry_list.php

示例12: chr

    echo '	</tr>' . chr(10) . chr(10);
    while ($R_product = mysql_fetch_assoc($Q_products)) {
        echo '	<tr>' . chr(10);
        echo '		<td>';
        if ($R_product['area_id'] == 0) {
            echo iconHTML('chart_organisation') . ' Alle anlegg';
        } else {
            $Q_area = mysql_query("select * from `mrbs_area` where id = '" . $R_product['area_id'] . "'");
            if (!mysql_num_rows($Q_area)) {
                echo '<i>' . __('Not found') . '</i>';
            } else {
                echo iconHTML('house') . ' ' . mysql_result($Q_area, 0, 'area_name');
            }
            echo '</td>' . chr(10);
        }
        echo '		<td><b>' . $R_product['product_id'] . '</b></td>' . chr(10);
        echo '		<td>' . iconHTML('package') . ' ' . $R_product['product_name'] . '</td>' . chr(10);
        echo '		<td><b>' . $R_product['product_price'] . '</b></td>' . chr(10);
        echo '		<td><b>' . $R_product['product_tax'] . ' %</b></td>' . chr(10);
        echo '		<td>' . nl2br($R_product['product_desc']) . '</td>' . chr(10);
        // Options
        echo '		<td>';
        if ($login['user_access_productsadmin']) {
            echo '<a href="' . $_SERVER['PHP_SELF'] . '?editor=1&amp;id=' . $R_product['product_id'] . '">' . iconHTML('package_go') . ' ' . __('Edit') . '</a>';
        } else {
            echo '<i>Ikke tilgang til &aring; endre';
        }
        echo '</td>' . chr(10);
        echo '	</tr>' . chr(10) . chr(10);
    }
}
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:admin_products.php

示例13: chr

            $color = ' style="background-color: #EFEFFF;"';
            $ico = 'email_link';
        }
        echo '	<tr>' . chr(10);
        echo '		<td class="border"' . $color . '>' . iconHTML($ico) . '<input type="hidden" id="address_full' . $address['address_id'] . '" value="' . $address['address_full'] . '">' . '<input type="radio" onclick="choose_address(\'' . $address['address_id'] . '\');"></td>' . chr(10);
        echo '		<td class="border"' . $color . '>' . $address['address_info'] . '</td>' . chr(10);
        echo '		<td class="border"' . $color . '>';
        echo nl2br($address['address_full']) . chr(10);
        echo '</td>' . chr(10);
        /*
        echo '		<td class="border"'.$color.'>';
        if($customer['customer_address_id_invoice'] == $address['address_id'])
        	echo _('Yes');
        else
        	echo _('No');
        */
        echo '</td>' . chr(10);
        echo '		<td class="border"' . $color . '>';
        echo '<a href="' . $_SERVER['PHP_SELF'] . '?' . $string . '&amp;address_id=' . $address['address_id'] . '">Endre</a>';
        echo '</td>' . chr(10);
        echo '	</tr>' . chr(10);
    }
    echo '</table>' . chr(10);
    echo '<br><br>';
    echo '<table><tr><td style="background-color: #EFEFFF;">' . iconHTML('email_link') . ' Adressen er standard fakturaadresse for kunden.</td></tr></table>';
} else {
    echo __('No addresses.') . '<br>';
}
echo '<br>';
echo '<a href="' . $_SERVER['PHP_SELF'] . '?' . $string . '&amp;address_id=0">Ny adresse</a>';
echo '</body></html>';
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:customer_address_choose.php

示例14: entrylist_invoice_tobemade

function entrylist_invoice_tobemade($SQL, $tamed_booking, $area_spesific = false)
{
    $Q = mysql_query($SQL . ' order by `time_start`');
    if (!$tamed_booking || !mysql_num_rows($Q)) {
        echo __('No entries found.');
    } else {
        echo '<font color="red">' . mysql_num_rows($Q) . '</font> ' . __('entries found.');
        echo '<br>' . chr(10) . chr(10);
        echo '<table style="border-collapse: collapse;">' . chr(10);
        echo ' <tr>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>Arrangementsdato</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>' . __('Name') . '</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>' . __('Area') . '</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>Sum</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>&nbsp;</b></td>' . chr(10);
        echo ' </tr>' . chr(10);
        while ($R = mysql_fetch_assoc($Q)) {
            $entry = getEntry($R['entry_id']);
            echo ' <tr>' . chr(10);
            // Starts
            echo '  <td style="border: 1px solid black;">';
            echo '<a href="day.php?year=' . date('Y', $entry['time_start']) . '&amp;month=' . date('m', $entry['time_start']) . '&amp;day=' . date('d', $entry['time_start']) . '&amp;area=' . $entry['area_id'] . '">' . date('d', $entry['time_start']) . '</a>-';
            echo '<a href="month.php?year=' . date('Y', $entry['time_start']) . '&amp;month=' . date('m', $entry['time_start']) . '&amp;day=' . date('d', $entry['time_start']) . '&amp;area=' . $entry['area_id'] . '">' . __(date('m', $entry['time_start'])) . '</a>-';
            echo date('Y', $entry['time_start']);
            echo '</td>' . chr(10);
            // Name
            echo '  <td style="border: 1px solid black;"><a href="entry.php?entry_id=' . $entry['entry_id'] . '">' . $entry['entry_name'] . '</a>';
            $checkInvoice = checkInvoicedata($entry);
            if (count($checkInvoice[0])) {
                echo '<br /><br /><b>Feil med fakturagrunnlag:</b><br />';
                echo '<div class="error"><ul style="padding-left: 20px; margin: 0px;">';
                foreach ($checkInvoice[0] as $error) {
                    echo '<li>' . $error . '</li>';
                }
                echo '</ul></div>';
            }
            if (count($checkInvoice[1])) {
                if (!count($checkInvoice[0])) {
                    echo '<br /><br />';
                }
                echo '<b>Advarsler p&aring; fakturagrunnlag:</b><br />';
                echo '<div class="notice"><ul style="padding-left: 20px; margin: 0px;">';
                foreach ($checkInvoice[1] as $warnings) {
                    echo '<li>' . $warnings . '</li>';
                }
                echo '</ul></div>';
            }
            echo '</td>' . chr(10);
            // Area
            echo '  <td style="border: 1px solid black;">';
            $area = getArea($entry['area_id']);
            if (count($area)) {
                echo $area['area_name'];
            }
            echo '</td>' . chr(10);
            // Invoice
            echo '  <td style="border: 1px solid black; text-align: right;">kr&nbsp;' . smarty_modifier_commify($entry['faktura_belop_sum'], 2, ",", "&nbsp;") . '</td>' . chr(10);
            // Set ready
            echo '  <td style="border: 1px solid black;">';
            echo '<a href="invoice_setready.php?entry_id=' . $entry['entry_id'];
            if ($area_spesific) {
                echo '&amp;return=invoice_tobemade_area';
            } else {
                echo '&amp;return=invoice_tobemade';
            }
            echo '">' . 'Sett&nbsp;faktureringsklar&nbsp;';
            if (count($checkInvoice[0])) {
                // Errors
                echo iconHTML('arrow_right_red');
            } elseif (count($checkInvoice[1])) {
                // Warnings
                echo iconHTML('arrow_right_yellow');
            } else {
                // None
                echo iconHTML('arrow_right');
            }
            echo '</a>';
            echo '</td>' . chr(10);
            echo ' </tr>' . chr(10);
        }
        echo '</table>';
    }
}
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:83,代码来源:invoice_top.php

示例15: while

    while ($R_invoiced = mysql_fetch_assoc($Q_invoiced)) {
        // Emails
        $sendto = '';
        if ($R_invoiced['emailed'] == '1') {
            $Q_emails = mysql_query("select * from `invoiced_emails` where `invoiced_id` = '" . $R_invoiced['invoiced_id'] . "'");
            $sendto = array();
            while ($R_emails = mysql_fetch_assoc($Q_emails)) {
                $sendto[] = $R_emails['email_addr'];
            }
            $sendto = implode($sendto, ',<br />');
        }
        // Entries
        $Q_entries = mysql_query("\n\t\t\tSELECT entry . *\n\t\t\t\tFROM \n\t\t\t\t\t`entry_invoiced`\n\t\t\t\tLEFT JOIN\n\t\t\t\t\t`entry`\n\t\t\t\tON\n\t\t\t\t\t`entry_invoiced`.entry_id = `entry`.entry_id\n\t\t\t\tWHERE\n\t\t\t\t\t`entry_invoiced`.invoiced_id = '" . $R_invoiced['invoiced_id'] . "';\n\t\t\t");
        $entries = array();
        while ($R_entry = mysql_fetch_assoc($Q_entries)) {
            $entries[] = '<a href="entry.php?entry_id=' . $R_entry['entry_id'] . '">' . iconHTML('page_white_star') . ' (' . $R_entry['entry_id'] . ') ' . $R_entry['entry_title'] . '</a>';
        }
        $entries = implode($entries, ',<br />');
        $pdf_link = '';
        if ($R_invoiced['pdf_name'] != '') {
            $pdf_link = '<a href="' . $invoice_location . $R_invoiced['pdf_name'] . '">' . iconFiletype('pdf') . ' ' . $R_invoiced['pdf_name'] . '</a>';
        }
        // Highlight
        $highlighted = '';
        if (isset($_GET['highlight']) && $_GET['highlight'] == $R_invoiced['invoiced_id']) {
            $highlighted = ' class="notice"';
        }
        echo '<tr' . $highlighted . '>' . '<td>' . date('d-m-Y H:i:s', $R_invoiced['created']) . '</td>' . '<td>' . $entries . '</td>' . '<td>' . $pdf_link . '</td>' . '<td>' . $sendto . '</td>' . '</tr>' . chr(10);
    }
    echo '</table>';
}
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:invoiced_list.php


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