echo $row['cp_name'];
?>
"></td>
  </tr>
  <tr>
    <td class="cellcolor">产品规格:</td>
    <td>&nbsp;<input type="text" name="cp_gg" id="need" value="<?php 
echo $row['cp_gg'];
?>
"></td>
  </tr>
  <tr>
    <td class="cellcolor">产品所属分类:</td>
    <td>&nbsp;
	<?php 
getcategories($row['cp_categories'], $row['cp_categories_down']);
?>
	</td>
  </tr>
  <tr>
    <td class="cellcolor">单位:</td>
    <td>&nbsp;<?php 
getdw($row['cp_dwname']);
?>
</td>
  </tr>
  <tr>
    <td class="cellcolor">进货价格:</td>
    <td>&nbsp;<input type="text" name="cp_jj" id="need" value="<?php 
echo $row['cp_jj'];
?>
<?php

// is file_get_contents faster?
ob_start();
include 'index.html';
$html = ob_get_contents();
ob_end_clean();
$requested_page = null;
// get the URL request path so we find the right page to display
$request = split('/', preg_replace('/^\\/(.*?)(\\/|)$/', '$1', $_SERVER['REQUEST_URI']));
// Should this perhaps be cached?
$categories = getcategories('lib/docs/api-docs.xml', $request);
// strip out the AIR loader and replace it with the categories
$html = preg_replace('@<p class="loading"><img src="/assets/images/spinner.gif" /> Loading jQuery API database</p>@', $categories, $html);
if ($requested_page) {
    ob_start();
    show_api_page($requested_page);
    $fn = ob_get_contents();
    ob_end_clean();
    $html = preg_replace('@<div id="detail">.*?</div>@s', '<div id="detail"><div class="inner">' . $fn . '</div>', $html);
}
echo $html;
function show_api_page($el)
{
    $functionval = $el->getAttribute('name');
    //preg_replace('/^jquery\./i', '$.', $el->getAttribute('name'));
    $params = $el->getElementsByTagName('params');
    $all_params = array();
    for ($i = 0; $i < $params->length; $i++) {
        array_push($all_params, trim($params->item($i)->getAttribute('name')));
    }
    <td>&nbsp;</td>
    <td>
	<table width="100%" border="0" cellpadding="0" cellspacing="2">
     <tr>
      <td>
	   <table width="100%" border="0" cellspacing="0">
	    <tr><form action="system_kc.php?action=seek" name="form1" method="post">
		 <td>
	  <strong>&nbsp;系统库存管理</strong>
	     </td>
		 <td align="right">所在分类:
		 <?php 
if ($action == 'seek') {
    getcategories($cp_categories, $cp_categories_down);
} else {
    getcategories(0, '');
}
?>
		 <select name="sort">
		 <option value="1">按货号查询</option>
		 <option value="2">按条码查询</option>
		 <option value="3" selected>按名称查询</option>
		 <option value="4">按助记词查询</option>
		 </select>
		 <input type="text" name="stext" size="15" VALUE="<?php 
echo $stext;
?>
"><input type="submit" value="开始检索">
		 &nbsp;&nbsp;
		 </td>
		</tr></form>
Example #4
0
require_once JApplicationHelper::getPath('front_html');
$cid = JRequest::getVar('cid', array(0), '', 'array');
JArrayHelper::toInteger($cid, array(0));
$user =& JFactory::getUser();
if (!$user->gid && !in_array($task, array("getcategories", "getcontents", "getimages"))) {
    $mainframe->redirect('index.php', JText::_('ALERTNOTAUTH'));
    exit;
}
$id = JRequest::getVar('id', 0, '', 'int');
if ($task == "getimages") {
    HTML_FPSlideShow::showHeaderIM($option, $task);
}
switch ($task) {
    // HELPERS
    case 'getcategories':
        getcategories();
        break;
    case 'getcontents':
        getcontents();
        break;
    case 'getimages':
        getimages();
        break;
        // DEFAULT
    // DEFAULT
    default:
        showNothing($option);
        break;
}
if ($task == "getimages") {
    HTML_FPSlideShow::showFooter();