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


PHP js_singlequote函数代码示例

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


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

示例1: build_levels

function build_levels($struct, $level, $temp_tree, $act_cat_id, $nav_table_struct, $count, $div, $link_to)
{
    // this returns the level structure based on given arrays
    // it is special for browsing from root levels
    $nav_table_struct["linkimage_over_js"] = $nav_table_struct['array_struct'][$count]["linkimage_over_js"];
    $nav_table_struct["linkimage_norm"] = $nav_table_struct['array_struct'][$count]["linkimage_norm"];
    $nav_table_struct["linkimage_over"] = $nav_table_struct['array_struct'][$count]["linkimage_over"];
    $nav_table_struct["linkimage_active"] = $nav_table_struct['array_struct'][$count]["linkimage_active"];
    $nav_table_struct["row_norm_bgcolor"] = $nav_table_struct['array_struct'][$count]["row_norm_bgcolor"];
    $nav_table_struct["row_norm_class"] = $nav_table_struct['array_struct'][$count]["row_norm_class"];
    $nav_table_struct["row_over_bgcolor"] = $nav_table_struct['array_struct'][$count]["row_over_bgcolor"];
    $nav_table_struct["row_active_bgcolor"] = $nav_table_struct['array_struct'][$count]["row_active_bgcolor"];
    $nav_table_struct["row_active_class"] = $nav_table_struct['array_struct'][$count]["row_active_class"];
    $nav_table_struct["space_celltop"] = $nav_table_struct['array_struct'][$count]["space_celltop"];
    $nav_table_struct["space_cellbottom"] = $nav_table_struct['array_struct'][$count]["space_cellbottom"];
    $nav_table_struct["cell_height"] = $nav_table_struct['array_struct'][$count]["cell_height"];
    $nav_table_struct["cell_class"] = $nav_table_struct['array_struct'][$count]["cell_class"];
    $nav_table_struct["cell_active_height"] = $nav_table_struct['array_struct'][$count]["cell_active_height"];
    $nav_table_struct["cell_active_class"] = $nav_table_struct['array_struct'][$count]["cell_active_class"];
    $nav_table_struct["link_before"] = $nav_table_struct['array_struct'][$count]["link_before"];
    $nav_table_struct["link_after"] = $nav_table_struct['array_struct'][$count]["link_after"];
    $nav_table_struct["link_active_before"] = $nav_table_struct['array_struct'][$count]["link_active_before"];
    $nav_table_struct["link_active_after"] = $nav_table_struct['array_struct'][$count]["link_active_after"];
    $temp_menu = '';
    $js = '';
    $depth = count($temp_tree) - $div;
    $current_level = $count;
    $count++;
    $depth2 = $depth - $count + 2;
    $right_cell = '';
    $left_cell = '';
    $cell_top = '';
    $cell_bottom = '';
    $space_right = '';
    $space_cell = '';
    $space_row = '';
    $cell_height = $nav_table_struct["cell_height"] ? $nav_table_struct["cell_height"] : 1;
    if ($nav_table_struct["space_right"]) {
        $right_cell = "<td width=\"" . $nav_table_struct["space_left"] . "\">";
        $right_cell .= spacer($nav_table_struct["space_right"], $cell_height) . "</td>\n";
        $space_right = "<td>" . spacer(1, 1) . "</td>";
    }
    if ($nav_table_struct["space_left"]) {
        $colspan = $count > 1 ? " colspan=\"" . $count . "\"" : "";
        $left_cell = "<td width=\"" . $nav_table_struct["space_left"] . "\"" . $colspan . ">";
        $left_cell .= spacer($nav_table_struct["space_left"], $cell_height) . "</td>\n";
        $space_cell = "<td" . $colspan . ">" . spacer(1, 1) . "</td><td>" . spacer(1, 1) . "</td>";
    } else {
        if ($count > 1) {
            $colspan = $count > 2 ? " colspan=\"" . ($count - 1) . "\"" : "";
            $left_cell = "<td " . $colspan . ">" . spacer(1, 1) . "</td>\n";
            $space_cell = "<td" . $colspan . ">" . spacer(1, 1) . "</td><td>" . spacer(1, 1) . "</td>";
        }
    }
    if ($nav_table_struct["space_celltop"]) {
        $cell_top = spacer(1, $nav_table_struct["space_celltop"]) . "<br />";
    }
    if ($nav_table_struct["space_cellbottom"]) {
        $cell_bottom = "<br />" . spacer(1, $nav_table_struct["space_cellbottom"]);
    }
    $colspan = $depth2 > 1 ? ' colspan="' . $depth2 . '"' : '';
    foreach ($struct as $key => $value) {
        if (_getStructureLevelDisplayStatus($key, $level)) {
            $link_image_id = "linkid" . generic_string(6);
            $link_name_id = ' name="' . $link_image_id . '" id="' . $link_image_id . '"';
            if (!$struct[$key]["acat_redirect"]) {
                $link = 'index.php?';
                if ($struct[$key]["acat_alias"]) {
                    $link .= html_specialchars($struct[$key]["acat_alias"]);
                } else {
                    $link .= 'id=' . $key;
                    //',0,0,1,0,0';
                }
                $redirect['target'] = '';
            } else {
                $redirect = get_redirect_link($struct[$key]["acat_redirect"], ' ', '');
                $link = $redirect['link'];
            }
            $js = ' style="cursor:pointer;cursor:hand;"';
            //display:block;
            $js_act = $js;
            if ($nav_table_struct["js_over_effects"]) {
                if ($redirect['target'] != ' target="_blank"') {
                    $js .= " onclick=\"location.href='" . js_singlequote($link) . "';return false;\"";
                } else {
                    $js .= " onclick=\"window.open('" . js_singlequote($link) . "', 'phpwcmnewwin');return false;\"";
                }
                $js_act = $js;
                $js .= ' onmouseover="';
                if ($nav_table_struct["linkimage_over_js"]) {
                    $js .= "MM_swapImage('" . $link_image_id . "','','" . $nav_table_struct["linkimage_over_js"] . "',1);";
                }
                if ($nav_table_struct["row_over_bgcolor"]) {
                    $js .= "this.bgColor='" . $nav_table_struct["row_over_bgcolor"] . "';";
                }
                $js .= '" onmouseout="';
                if ($nav_table_struct["linkimage_over_js"]) {
                    $js .= "MM_swapImgRestore();";
                }
                if ($nav_table_struct["row_norm_bgcolor"]) {
//.........这里部分代码省略.........
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:101,代码来源:front.func.inc.php

示例2: html

            echo '<td width="470" class="dir"><a href="phpwcms.php?' . $edit_link;
            echo '"><strong>' . html($row["template_name"]) . "</strong>";
            echo $row["template_default"] ? " (" . $BL['be_admin_tmpl_default'] . ")" : "";
            echo "</a></td>\n" . '<td width="60" align="right">';
            echo '<a href="phpwcms.php?' . $edit_link;
            echo '"><img src="img/button/edit_22x11.gif" width="22" height="11" border="0"></a>';
            echo '<img src="img/leer.gif" width="2" height="1">';
            // ERICH COPY TEMPLATE 7.6.2005
            echo '<a href="phpwcms.php?' . $edit_link . '&amp;c=1';
            // c=1 -> do copy
            echo '" title="copy template"><img src="img/button/copy_11x11_0.gif" width="11" height="11" border="0"></a>';
            echo '<img src="img/leer.gif" width="2" height="1">';
            // ERICH COPY TEMPLATE END 7.6.2005
            echo '<a href="include/inc_act/act_frontendsetup.php?do=2|' . $row["template_id"] . '" ';
            echo 'title="' . $BL['be_cnt_delete'] . ': ' . html($row["template_name"]) . '" ';
            echo 'onclick="return confirm(\'' . js_singlequote($BL['be_cnt_delete'] . ': ' . html($row["template_name"])) . '\');">';
            echo '<img src="img/button/del_11x11.gif" width="11" height="11" border="0"></a>';
            echo '<img src="img/leer.gif" width="2" height="1">' . "</td>\n</tr>\n";
            $row_count++;
        }
        mysql_free_result($result);
    }
    // end listing
    ?>
	<tr><td colspan="3" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
	</tr>
	<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="8" /></td>
	</tr>
	<tr><td colspan="3"><form action="phpwcms.php?do=admin&amp;p=11&amp;s=0" method="post">
	  <input type="submit" value="<?php 
    echo $BL['be_admin_tmpl_add'];
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:admin.templates.tmpl.php

示例3: html

"><img src="img/button/<?php 
        if (!$userlist["usr_aktiv"]) {
            echo "in";
        }
        ?>
aktiv_mini.gif" alt="" width="14" height="15" border="0"></a><a href="<?php 
        echo $goto;
        ?>
"><img src="img/button/edit.gif" alt="" width="24" height="15" border="0" title="<?php 
        echo $BL['be_admin_usr_editusr'] . ": " . html($userlist["usr_login"]);
        ?>
"></a><a href="include/inc_act/act_user.php?del=<?php 
        echo urlencode($userlist["usr_id"] . ":" . $userlist["usr_email"]);
        ?>
" onclick="return confirm('Delete user <?php 
        echo js_singlequote($userlist["usr_name"]);
        ?>
');"><img src="img/button/del_message_final.gif" alt="" width="22" height="15" border="0" title="<?php 
        echo $BL['be_admin_usr_ldel'] . " " . html($userlist["usr_login"]);
        ?>
"></a></td>
        </tr>
        <?php 
        $zaehler++;
    }
    mysql_free_result($result);
}
//Ende Schleife Anzeige User
if ($zaehler) {
    echo '<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>';
    echo '<tr><td colspan="3" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>';
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:admin.listuser.tmpl.php

示例4: html_specialchars

            echo " onmouseover=\"Tip('" . $BL['be_admin_page_category'] . " ID: <b>" . $row["cat_id"] . "</b><br />" . $BL['be_cnt_sorting'] . ": <b>" . $row["cat_sort"] . "</b>');\"";
        }
        echo '>' . LF;
        echo '<td width="25" style="padding:2px 3px 2px 4px;">';
        echo '<img src="img/famfamfam/tag_';
        echo $row['cat_pid'] ? 'orange' : 'blue';
        echo '.gif" alt="' . $BLM['shop_category'] . '" /></td>' . LF;
        echo '<td class="dir" width="85%">';
        echo $row['cat_pid'] ? '&nbsp;&nbsp;&nbsp;&nbsp;' : '&nbsp;';
        echo html_specialchars($row['category']) . "</td>\n";
        echo '<td class="dir" width="3%" align="center">&nbsp;' . $row['cat_sort'] . '&nbsp;</td>';
        echo '<td width="10%" align="right" nowrap="nowrap" class="button_td">';
        echo '<a href="' . $_controller_link . '&amp;edit=' . $row["cat_id"] . '">';
        echo '<img src="img/button/edit_22x13.gif" border="0" alt="" /></a>';
        echo '<a href="' . $_controller_link . '&amp;status=' . $row["cat_id"] . '-' . $row["cat_status"] . '">';
        echo '<img src="img/button/aktiv_12x13_' . $row["cat_status"] . '.gif" border="0" alt="" /></a>';
        echo '<a href="' . $_controller_link . '&amp;delete=' . $row["cat_id"];
        echo '" title="delete: ' . html_specialchars($row['cat_name']) . '"';
        echo ' onclick="return confirm(\'' . $BLM['delete_entry'] . js_singlequote($row['cat_name']) . '\');">';
        echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" /></a>';
        echo '</td>' . LF;
        echo '</tr>' . LF;
        $row_count++;
    }
    echo '<tr><td colspan="4" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>';
} else {
    echo '<tr><td colspan="4" class="tdtop5">' . $BL['be_empty_search_result'] . '</td></tr>';
}
?>

</table>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:listing.categories.inc.php

示例5: _dbQuery

}
$data = _dbQuery($sql);
if ($data) {
    foreach ($data as $row) {
        echo '<tr' . ($row_count % 2 ? ' class="adsAltRow"' : '') . '>' . LF;
        echo '	<td width="25" style="padding:2px 3px 2px 4px;"><img src="img/famfamfam/transmit.gif" alt="' . $BLM['campaign_entry'] . '" /></td>' . LF;
        echo '	<td width="50%">' . html($row["adcampaign_title"]) . "</td>\n";
        echo '	<td class="listFormat">' . html(date($BLM['list_date_format'], $row["adcampaign_start"]) . '&#8211;' . date($BLM['list_date_format'], $row["adcampaign_end"])) . "</td>\n";
        echo '	<td class="listFormat" nowrap="nowrap">' . $row["adplace_width"] . 'x' . $row["adplace_height"] . ' {ADS_' . $row["adplace_id"] . "}&nbsp;</td>\n";
        echo '	<td align="right" nowrap="nowrap" class="button_td">';
        echo '<a href="' . MODULE_HREF . '&amp;campaign=1&amp;edit=' . $row["adcampaign_id"] . '">';
        echo '<img src="img/button/edit_22x13.gif" border="0" alt="" /></a>';
        echo '<a href="' . MODULE_HREF . '&amp;campaign=1&amp;duplicate=' . $row["adcampaign_id"] . '" ';
        echo 'title="' . $BLM['duplicate_title'] . '" onclick="return confirm(\'' . js_singlequote($BLM['duplicate_campaign']) . ' \\n' . js_singlequote($BLM['campaign_title'] . ': ' . html('"' . $row["adcampaign_title"] . '"')) . '\');"';
        echo '><img src="img/button/copy_13x13.gif" border="0" alt="" /></a>';
        echo '<a href="' . MODULE_HREF . '&amp;campaign=1&amp;editid=' . $row["adcampaign_id"] . '&amp;verify=';
        echo ($row["adcampaign_status"] ? '0' : '1') . '">';
        echo '<img src="img/button/aktiv_12x13_' . $row["adcampaign_status"] . '.gif" border="0" alt="" /></a>';
        echo '<a href="' . MODULE_HREF . '&amp;campaign=1&amp;delete=' . $row["adcampaign_id"];
        echo '" title="delete: ' . html($row["adcampaign_title"]) . '"';
        echo ' onclick="return confirm(\'' . $BLM['delete_entry'] . js_singlequote($row["adcampaign_title"]) . '\');">';
        echo '<img src="img/button/trash_13x13_1.gif" border="0" alt=""></a>';
        echo "</td>\n</tr>\n";
        $row_count++;
    }
    echo '<tr><td colspan="5" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>';
} else {
    echo '<tr><td colspan="5" class="tdtop5">' . $BL['be_empty_search_result'] . '</td></tr>';
}
?>
</table>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:listing.campaign.inc.php

示例6: html_specialchars

        echo '<td width="25" style="padding:2px 3px 2px 4px;">';
        echo '<img src="img/famfamfam/package.gif" alt="' . $BLM['shop_product'] . '" /></td>' . LF;
        echo '<td class="dir">';
        if (SHOP_FELANG_SUPPORT) {
            $row['shopprod_lang'] = html_specialchars(strtolower($row['shopprod_lang']));
            echo '<img src="img/famfamfam/lang/' . ($row['shopprod_lang'] ? $row['shopprod_lang'] : 'all') . '.png" alt="' . $row['shopprod_lang'] . '" />';
        }
        echo '&nbsp;' . html_specialchars($row['shopprod_ordernumber']) . "</td>\n";
        echo '<td class="dir">&nbsp;' . html_specialchars($row['shopprod_model']) . "</td>\n";
        echo '<td class="dir">&nbsp;' . html_specialchars($row['shopprod_name1']) . "</td>\n";
        echo '<td class="dir listNumber">&nbsp;' . html_specialchars(number_format(round($row['shopprod_price'], 2), 2, $BLM['dec_point'], $BLM['thousands_sep'])) . "&nbsp;</td>\n";
        echo '<td align="right" nowrap="nowrap" class="button_td">';
        echo '<a href="' . $_controller_link . '&amp;edit=' . $row["shopprod_id"] . '">';
        echo '<img src="img/button/edit_22x13.gif" border="0" alt="" /></a>';
        echo '<a href="' . $_controller_link . '&amp;status=' . $row["shopprod_id"] . '-' . $row["shopprod_status"] . '">';
        echo '<img src="img/button/aktiv_12x13_' . $row["shopprod_status"] . '.gif" border="0" alt="" /></a>';
        echo '<a href="' . $_controller_link . '&amp;delete=' . $row["shopprod_id"];
        echo '" title="delete: ' . html_specialchars($row['shopprod_ordernumber'] . ' / ' . $row['shopprod_name1']) . '"';
        echo ' onclick="return confirm(\'' . $BLM['delete_product'] . js_singlequote($row['shopprod_ordernumber'] . ' / ' . $row['shopprod_name1']) . '\');">';
        echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" /></a>';
        echo '</td>' . LF;
        echo '</tr>' . LF;
        $row_count++;
    }
    echo '<tr><td colspan="6" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>';
} else {
    echo '<tr><td colspan="6" class="tdtop5">' . $BL['be_empty_search_result'] . '</td></tr>';
}
?>

</table>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:listing.products.inc.php

示例7: array

            $value2 = array('title' => '', 'description' => '');
        }
        $tmpldata['js'][] = '  nltemplate["' . $value . '"] = new Array();';
        $tmpldata['js'][] = '  nltemplate["' . $value . '"]["title"] = "' . js_singlequote($value2['title']) . '";';
        $tmpldata['js'][] = '  nltemplate["' . $value . '"]["description"] = "' . js_singlequote($value2['description']) . '";';
        $value2 = '';
        // set preview image
        if (isset($tmpldata['files'][$i]['preview.gif'])) {
            $value2 = 'preview.gif';
        } elseif (isset($tmpldata['files'][$i]['preview.jpg'])) {
            $value2 = 'preview.jpg';
        } elseif (isset($tmpldata['files'][$i]['preview.png'])) {
            $value2 = 'preview.png';
        }
        if ($value2) {
            $tmpldata['js'][] = '  nltemplate["' . $value . '"]["imgsrc"] = "' . js_singlequote(TEMPLATE_PATH . 'inc_newsletter/' . $value . '/' . $value2) . '";';
        }
        $i++;
    }
}
?>
	<tr>
		<td align="right" class="chatlist"><?php 
echo $BL['be_admin_struct_template'];
?>
:&nbsp;</td>
		<td><select name="newsletter_template" id="newsletter_template" onchange="showNewsletterTemplateData(this.options[this.selectedIndex].value);">
			<option value=""<?php 
if (empty($newsletter["newsletter_vars"]['template'])) {
    echo ' selected="selected"';
}
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:newsletter.form.tmpl.php

示例8: html

                }
            }
        }
    } else {
        $_userInfo['channel_select'] = '';
    }
    $row["address_email"] = html($row["address_email"]);
    echo '<tr' . ($row_count % 2 ? ' bgcolor="#F3F5F8"' : '') . $_userInfo['channel_select'] . ">\n<td width=\"25\" style=\"padding:1px 3px 3px 4px;\">";
    echo '<img src="img/famfamfam/vcard.gif" alt="Recipient"></td>' . "\n";
    echo '<td width="1%" class="dir">&nbsp;<strong>' . $row["address_email"] . "</strong></td>\n";
    echo '<td class="dir" width="95%">&nbsp;' . html($row["address_name"]) . "</td>\n";
    echo '<td align="right" nowrap="nowrap" class="button_td">';
    echo '<a href="phpwcms.php?do=messages&amp;p=4&amp;s=' . $row["address_id"] . '&amp;edit=1">';
    echo '<img src="img/button/edit_22x13.gif" border="0" alt=""></a>';
    echo '<a href="phpwcms.php?do=messages&amp;p=4&amp;s=' . $row["address_id"] . '&amp;verify=';
    echo $row["address_verified"] ? '0' : '1';
    echo '" title="set ' . $row["address_email"] . ' verified/not verified">';
    echo '<img src="img/button/aktiv_12x13_' . $row["address_verified"] . '.gif" border="0" alt=""></a>';
    echo '<a href="phpwcms.php?do=messages&amp;p=4&amp;s=' . $row["address_id"] . '&amp;del=' . $row["address_id"];
    echo '" title="delete: ' . $row["address_email"] . '"';
    echo ' onclick="return confirm(\'Delete subscriber ' . js_singlequote($row["address_email"]) . '\');">';
    echo '<img src="img/button/trash_13x13_1.gif" border="0" alt=""></a>';
    echo "</td>\n</tr>\n";
    $row_count++;
}
if ($row_count) {
    echo '<tr><td colspan="4" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>';
}
?>
	<tr><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="15"></td></tr>
</table>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:message.subscribers.tmpl.php

示例9: foreach

    foreach ($data as $key => $row) {
        echo '<tr' . ($key % 2 ? ' class="adsAltRow"' : '') . '>' . LF;
        echo '<td width="25" style="padding:2px 3px 2px 4px;">';
        echo '<a href="' . $_controller_link . '&amp;show=' . $row["order_id"] . '">';
        echo '<img src="img/famfamfam/cart_go.gif" alt="' . $BLM['shop_order'] . '" border="0" />';
        echo '</a></td>' . LF;
        echo '<td class="dir nowrap" width="13%">';
        if (SHOP_FELANG_SUPPORT) {
            $row['order_data'] = @unserialize($row['order_data']);
            $row['shopprod_lang'] = empty($row['order_data']['lang']) ? '' : html_specialchars(strtolower($row['order_data']['lang']));
            echo '<img src="img/famfamfam/lang/' . ($row['shopprod_lang'] ? $row['shopprod_lang'] : 'all') . '.png" alt="' . $row['shopprod_lang'] . '" style="position:relative;top:1px;margin:0 3px 0 3px;" />';
        }
        echo html_specialchars($row['order_number']) . "&nbsp;</td>\n";
        echo '<td class="dir" align="right" width="13%">&nbsp;' . html_specialchars($row['order_fdate']) . "&nbsp;</td>\n";
        echo '<td class="dir nowrap" width="50%">&nbsp;<a href="mailto:' . $row['order_email'] . '?subject=' . rawurlencode($BLM['shopprod_order_subject'] . ' #' . $row['order_number']) . '">';
        echo html_specialchars($row['order_firstname'] . ' ' . $row['order_name']) . "</a>&nbsp;</td>\n";
        echo '<td class="dir listNumber" width="10%">' . html_specialchars(number_format(round($row['order_net'], 2), 2, $BLM['dec_point'], $BLM['thousands_sep'])) . "&nbsp;</td>\n";
        echo '<td class="dir listNumber" width="10%">' . html_specialchars(number_format(round($row['order_gross'], 2), 2, $BLM['dec_point'], $BLM['thousands_sep'])) . "&nbsp;</td>\n";
        echo '<td class="dir" width="10%">' . (empty($row['order_payment']) ? '-' : html_specialchars($BLM['shopprod_payby_' . $row['order_payment']])) . "&nbsp;&nbsp;</td>\n";
        echo '<td width="5%" align="right" class="button_td nowrap">';
        echo '<a href="' . $_controller_link . '&amp;delete=' . $row["order_id"] . '" title="' . $BL['be_cnt_delete'] . ': ' . html($row['order_number']) . '"';
        echo ' onclick="return confirm(\'' . $BLM['delete_order'] . js_singlequote($row['order_number']) . '\');">';
        echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" /></a>';
        echo '</td>' . LF;
        echo '</tr>' . LF;
    }
} else {
    echo '<tr><td colspan="8" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>';
}
?>
</table>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:listing.orders.inc.php

示例10: html_specialchars

         } else {
             $img_name = html_specialchars($content['reference']["list"][$captkey][1]);
         }
         $content['reference']['ref_list'] .= '<img src="' . PHPWCMS_IMAGES . $thumb_image[0];
         $content['reference']['ref_list'] .= '" border="' . $content['reference']['border'] . '" ';
         $content['reference']['ref_list'] .= $thumb_image[3] . ' alt="' . $img_name . '" title="' . $img_name;
         $content['reference']['ref_list'] .= '" id="' . $content['reference']['ref_id'] . 'a' . $captkey;
         $content['reference']['ref_list'] .= '" name="' . $content['reference']['ref_id'] . 'a' . $captkey . '" ';
         // switch large image onmouseover
         $content['reference']['ref_list'] .= 'onmouseover="';
         if ($over_image != false) {
             $content['reference']['ref_list'] .= "MM_swapImage('" . $content['reference']['ref_id'];
             $content['reference']['ref_list'] .= "','','" . PHPWCMS_IMAGES . $over_image[0] . "',1);";
         }
         // make single quotes js compatible
         $content['reference']['x7'] = js_singlequote($content['reference']['caption_list'][$captkey]);
         // check if layer for caption available
         if ($content['reference']['x8'] && $content['reference']['caption_list'][$captkey]) {
             $content['reference']['ref_list'] .= "addText('refcaptid" . $crow['acontent_id'] . "','";
             $content['reference']['ref_list'] .= $content['reference']['x7'] . "');";
         }
         $content['reference']['ref_list'] .= "MM_displayStatusMsg('" . $content['reference']['x7'] . "');return ";
         $content['reference']['ref_list'] .= 'document.MM_returnValue;" />' . $content['reference']['x6'] . "</td>\n";
         $content['reference']['ref_list'] .= $content['reference']['x4'];
     }
     $ci++;
 }
 // close table row if horizontal
 $content['reference']['ref_list'] .= $content['reference']['x3'];
 // wrap it in the table
 $content['reference']['ref_list'] = '<table border="0" cellspacing="0" cellpadding="0">' . $content['reference']['ref_list'] . '</table>';
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:cnt50.article.inc.php

示例11: while

    // loop listing available pagelayouts
    $sql = "SELECT * FROM " . DB_PREPEND . "phpwcms_pagelayout WHERE pagelayout_trash=0 ORDER BY pagelayout_default DESC;";
    if ($result = mysql_query($sql, $db) or die("error while listing pagelayouts")) {
        $row_count = 0;
        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
            echo "<tr" . ($row_count % 2 ? " bgcolor=\"#F3F5F8\"" : "") . ">\n<td width=\"1%\" style=\"padding:2px 5px 2px 3px\">";
            echo '<img src="img/famfamfam/layout.gif" alt="" border="0" /></td>' . "\n";
            echo '<td class="dir"><a href="phpwcms.php?do=admin&amp;p=8&amp;s=' . $row["pagelayout_id"];
            echo '"><strong>' . html($row["pagelayout_name"]) . "</strong>";
            echo $row["pagelayout_default"] ? " (" . $BL['be_admin_tmpl_default'] . ")" : "";
            echo "</a></td>\n" . '<td align="right" nowarp="nowrap" style="padding:2px 3px 0 5px">';
            echo '<a href="phpwcms.php?do=admin&amp;p=8&amp;s=' . $row["pagelayout_id"] . '" title="' . $BL['be_admin_page_edit'] . '">';
            echo '<img src="img/button/edit_22x13.gif" alt="" border="0" /></a>';
            echo '<a href="include/inc_act/act_frontendsetup.php?do=1|' . $row["pagelayout_id"] . '" ';
            echo 'title="delete pagelayout: ' . html($row["pagelayout_name"]);
            echo '" style="margin-left:3px" onclick="return confirm(\'' . $BL['be_cnt_delete'] . ': ' . js_singlequote(html($row["pagelayout_name"])) . '?  \')">';
            echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" /></a>';
            echo "</td>\n</tr>\n";
            $row_count++;
        }
        mysql_free_result($result);
    }
    // end listing
    ?>
	<tr><td colspan="3" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>
	<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="8"></td>
	</tr>
	<tr><td colspan="3"><form action="phpwcms.php?do=admin&p=8&s=0" method="post"><input type="submit" value="<?php 
    echo $BL['be_admin_page_add'];
    ?>
" class="button" title="<?php 
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:admin.pagelayout.tmpl.php

示例12: listBackend

    function listBackend()
    {
        $this->select = '*, ';
        $this->select .= 'IF(UNIX_TIMESTAMP(cnt_livedate)<=0, cnt_created, UNIX_TIMESTAMP(cnt_livedate)) AS cnt_startdate, ';
        $this->select .= 'UNIX_TIMESTAMP(cnt_killdate) AS cnt_enddate, ';
        $this->select .= 'IF(cnt_sort=0, IF(UNIX_TIMESTAMP(cnt_livedate)<=0, cnt_created, UNIX_TIMESTAMP(cnt_livedate)), cnt_sort) AS cnt_sortdate';
        //$this->order_by	= array('cnt_prio DESC', 'cnt_sortdate DESC');
        $this->getNews();
        $list = array();
        $x = 0;
        if (count($this->news)) {
            $list[] = '<table cellpadding="0" cellspacing="0" border="0" summary="" class="listing" style="width:100%; min-width:750px">';
            $list[] = '<tr class="header">';
            $sort_class = array('prio' => 'sort-off', 'name' => 'sort-off', 'start' => 'sort-off', 'sort' => 'sort-off', 'end' => 'sort-off');
            switch ($this->filter_sort) {
                case 'prio_asc':
                    $sort_class['prio'] = 'sort-asc';
                    break;
                case 'prio_desc':
                    $sort_class['prio'] = 'sort-desc';
                    break;
                case 'name_asc':
                    $sort_class['name'] = 'sort-asc';
                    break;
                case 'name_desc':
                    $sort_class['name'] = 'sort-desc';
                    break;
                case 'start_asc':
                    $sort_class['start'] = 'sort-asc';
                    break;
                case 'start_desc':
                    $sort_class['start'] = 'sort-desc';
                    break;
                case 'sort_asc':
                    $sort_class['sort'] = 'sort-asc';
                    break;
                case 'sort_desc':
                    $sort_class['sort'] = 'sort-desc';
                    break;
                case 'end_asc':
                    $sort_class['end'] = 'sort-asc';
                    break;
                case 'end_desc':
                    $sort_class['end'] = 'sort-desc';
                    break;
            }
            $list[] = '<th class="column colfirst news"><span class="' . $sort_class['name'] . '">' . $this->BL['be_title'] . '</span></th>';
            $list[] = '<th class="column"><span class="' . $sort_class['start'] . '">' . $this->BL['be_article_cnt_start'] . '</span></th>';
            $list[] = '<th class="column"><span class="' . $sort_class['end'] . '">' . $this->BL['be_article_cnt_end'] . '</span></th>';
            $list[] = '<th class="column"><span class="' . $sort_class['sort'] . '">' . $this->BL['be_sort_date'] . '</span></th>';
            $list[] = '<th class="column"><span class="' . $sort_class['prio'] . '">Prio</span></th>';
            $list[] = '<th class="column collast">&nbsp;</th>';
            $list[] = '</tr>';
            foreach ($this->news as $news) {
                $list[] = '<tr class="row' . ($x % 2 ? ' alt' : '') . '">';
                $news['live'] = $news['cnt_startdate'];
                $news['live'] = $news['live'] == false || $news['live'] <= 0 ? $this->BL['be_func_struct_empty'] : date($this->BL['be_shortdatetime'], $news['live']);
                $news['kill'] = phpwcms_strtotime($news['cnt_killdate'], $this->BL['be_shortdatetime'], $this->BL['be_func_struct_empty']);
                $news['sort'] = $news['cnt_sortdate'] == false || $news['cnt_sortdate'] <= 0 ? $this->BL['be_func_struct_empty'] : date($this->BL['be_shortdatetime'], $news['cnt_sortdate']);
                $list[] = '<td class="column colfirst news" style="background-image:url(img/famfamfam/lang/' . (!$news['cnt_lang'] ? 'all' : $news['cnt_lang']) . '.png)">';
                $list[] = html($news['cnt_name']);
                $list[] = '</td>';
                $list[] = '<td class="column nowrap">' . $news['live'] . '</td>';
                $list[] = '<td class="column nowrap">' . $news['kill'] . '</td>';
                $list[] = '<td class="column nowrap">' . $news['sort'] . '</td>';
                $list[] = '<td class="column">' . $news['cnt_prio'] . '</td>';
                $list[] = '<td class="column collast nowrap">

					<a href="' . $this->base_url . '&amp;cntid=' . $news['cnt_id'] . '&amp;action=edit">' . '<img src="img/button/edit_22x13.gif" border="0" alt="" /></a>' . '<a href="' . $this->base_url . '&amp;cntid=' . $news['cnt_id'] . '&amp;status=' . ($news['cnt_status'] ? '0' : '1') . '">' . '<img src="img/button/aktiv_12x13_' . $news['cnt_status'] . '.gif" border="0" alt="" /></a>' . '<a href="' . $this->base_url . '&amp;cntid=' . $news['cnt_id'] . '&amp;status=9' . '" title="' . $this->BL['be_delete_dataset'] . ' ' . html($news['cnt_name']) . '" onclick="return confirm(\'' . $this->BL['be_delete_dataset'] . ' \\n' . js_singlequote($news['cnt_name']) . '\');">' . '<img src="img/button/trash_13x13_1.gif" border="0" alt=""></a>

				</td>';
                $list[] = '</tr>';
                $x++;
            }
            $list[] = '</table>';
        }
        return implode(LF, $list);
    }
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:78,代码来源:news.inc.php

示例13: _dbQuery

$data = _dbQuery($sql);
if ($data) {
    foreach ($data as $row) {
        echo '<tr' . ($row_count % 2 ? ' bgcolor="#F3F5F8"' : '') . '>' . LF . '<td width="20" style="width:20px;padding:2px 1px 2px 3px;">';
        echo '<img src="img/famfamfam/';
        echo $row["glossary_highlight"] ? 'tag_blue_key.gif' : 'tag_blue.gif';
        echo '" alt="' . $BLM['glossary_entry'] . '" /></td>' . LF;
        echo '<td class="dir" width="50%">' . html($row["glossary_title"]) . "&nbsp;</td>\n";
        echo '<td class="dir">' . html($row["glossary_keyword"]) . "&nbsp;</td>\n";
        echo '<td class="dir">' . html($row["glossary_tag"]) . "&nbsp;</td>\n";
        echo '<td align="right" nowrap="nowrap" class="button_td">';
        echo '<a href="' . GLOSSARY_HREF . '&amp;edit=' . $row["glossary_id"] . '">';
        echo '<img src="img/button/edit_22x13.gif" border="0" alt="" /></a>';
        echo '<a href="' . GLOSSARY_HREF . '&amp;editid=' . $row["glossary_id"] . '&amp;verify=';
        echo ($row["glossary_status"] ? '0' : '1') . '">';
        echo '<img src="img/button/aktiv_12x13_' . $row["glossary_status"] . '.gif" border="0" alt="" /></a>';
        echo '<a href="' . GLOSSARY_HREF . '&amp;delete=' . $row["glossary_id"];
        echo '" title="delete: ' . html($row["glossary_title"]) . '"';
        echo ' onclick="return confirm(\'' . $BLM['delete_entry'] . ' ' . js_singlequote($row["glossary_title"]) . '\');">';
        echo '<img src="img/button/trash_13x13_1.gif" border="0" alt=""></a>';
        echo "</td>\n</tr>\n";
        $row_count++;
    }
    echo '<tr><td colspan="5" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>';
} else {
    echo '<tr><td colspan="5" class="tdtop5">' . $BL['be_empty_search_result'] . '</td></tr>';
}
?>

	<tr><td colspan="5"><img src="img/leer.gif" alt="" width="1" height="15"></td></tr>
</table>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:backend.listing.php

示例14: html

        }
        ?>
aktiv_mini.gif" alt="" width="14" height="15" border="0" /></a><a href="<?php 
        echo $goto;
        ?>
"><img src="img/button/edit.gif" alt="" width="24" height="15" border="0" title="<?php 
        echo $BL['modules']['usergroup']['be_admin_group_edit'] . ": " . html($grouplist["group_name"]);
        ?>
"></a><a href="<?php 
        echo $phpwcms['modules']['usergroup']['dir'];
        ?>
include/inc_act/act_usergroup.php?del=<?php 
        echo urlencode($grouplist["group_id"] . ":" . $grouplist["group_name"]);
        ?>
" onclick="return confirm('Delete group <?php 
        echo js_singlequote($grouplist["group_name"]);
        ?>
');"><img src="img/button/del_message_final.gif" alt="" width="22" height="15" border="0" title="<?php 
        echo $BL['modules']['usergroup']['be_admin_group_ldel'] . " " . html($grouplist["group_login"]);
        ?>
"></a></td>
        </tr>
        <?php 
    }
} else {
    echo '<tr><td colspan="3">' . $BL['be_admin_group_nogroup'] . ': <a href="phpwcms.php?do=admin&amp;p=1&amp;create_group=1">' . $BL['be_admin_group_add'] . '</a></td></tr>';
}
?>
			<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr>
			<tr><td colspan="3" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>
			<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr>
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:admin.groups.tmpl.php

示例15: COUNT

$sql = 'SELECT COUNT(*) FROM ' . DB_PREPEND . 'phpwcms_ads_campaign WHERE adcampaign_status!=9 AND adcampaign_place=';
foreach ($data as $row) {
    echo '<tr' . ($row_count % 2 ? ' class="adsAltRow"' : '') . '>' . LF;
    echo '	<td width="25" style="padding:2px 3px 2px 4px;"><img src="img/famfamfam/layout.gif" alt="' . $BLM['adplace'] . '" /></td>' . LF;
    echo '	<td width="50%">' . html($row["adplace_title"]) . "</td>\n";
    echo '	<td class="listFormat" nowrap="nowrap">' . html($row["adformat_title"]) . "</td>\n";
    echo '	<td class="listFormat">{ADS_' . $row["adplace_id"] . "}</td>\n";
    echo '	<td class="listFormat">' . $row["adplace_width"] . 'x' . $row["adplace_height"] . "&nbsp;</td>\n";
    echo '	<td align="right" nowrap="nowrap" class="button_td">';
    echo '<a href="' . MODULE_HREF . '&amp;adplace=1&amp;edit=' . $row["adplace_id"] . '">';
    echo '<img src="img/button/edit_22x13.gif" border="0" alt="" /></a>';
    echo '<a href="' . MODULE_HREF . '&amp;adplace=1&amp;editid=' . $row["adplace_id"] . '&amp;verify=';
    echo ($row["adplace_status"] ? '0' : '1') . '">';
    echo '<img src="img/button/aktiv_12x13_' . $row["adplace_status"] . '.gif" border="0" alt="" /></a>';
    // check if campaign for place is available - then it's not possible t delete place
    if (_dbQuery($sql . $row['adplace_id'], 'COUNT')) {
        echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" class="inactive" />';
    } else {
        echo '<a href="' . MODULE_HREF . '&amp;adplace=1&amp;delete=' . $row["adplace_id"];
        echo '" title="delete: ' . html($row["adplace_title"]) . '"';
        echo ' onclick="return confirm(\'' . $BLM['delete_adplace'] . js_singlequote($row["adplace_title"]) . '\');">';
        echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" /></a>';
    }
    echo "</td>\n</tr>\n";
    $row_count++;
}
if ($row_count) {
    echo '<tr><td colspan="6" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>';
}
?>
</table>
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:listing.adplace.inc.php


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