Exemplo n.º 1
0
			<td height="40" align="right">属 性:</td>
			<td class="attrArea"><?php 
    $dosql->Execute("SELECT * FROM `#@__infoflag` ORDER BY `orderid` ASC");
    while ($row = $dosql->GetArray()) {
        echo '<span><input type="checkbox" name="flag[]" id="flag[]" value="' . $row['flag'] . '" />' . $row['flagname'] . '[' . $row['flag'] . ']</span>';
    }
    ?>
</td>
		</tr>
		<?php 
}
?>
		<tr class="nb">
			<td colspan="2" height="0" id="df"><?php 
if (isset($cid)) {
    echo GetDiyField($r['id'], $cid);
}
?>
</td>
		</tr>
		<?php 
if (in_array('picurl', $defaultfield)) {
    ?>
		<tr>
			<td height="40" align="right">缩略图片:</td>
			<td><input type="text" name="picurl" id="picurl" class="input" />
				<span class="cnote"><span class="grayBtn" onclick="GetUploadify('uploadify','缩略图上传','image','image',1,<?php 
    echo $cfg_max_file_size;
    ?>
,'picurl')">上 传</span> <span class="rePicTxt">
				<input type="checkbox" name="rempic" id="rempic" value="true" />
Exemplo n.º 2
0
			<td height="40" align="right">属 性:</td>
			<td class="attrArea"><?php 
$dosql->Execute("SELECT * FROM `#@__infoflag` ORDER BY orderid ASC");
while ($row = $dosql->GetArray()) {
    echo '<span><input type="checkbox" name="flag[]" id="flag[]" value="' . $row['flag'] . '" />' . $row['flagname'] . '[' . $row['flag'] . ']</span>';
}
?>
</td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="26"><div class="line"> </div></td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="0" id="df"><?php 
if (isset($cid)) {
    echo GetDiyField(2, $cid);
}
?>
</td>
		</tr>
		<tr>
			<td height="40" align="right">文章来源:</td>
			<td><input type="text" name="source" id="source" class="input" />
				<span class="srcArea"> <span class="infosrc">选择
				<ul>
					<?php 
$dosql->Execute("SELECT * FROM `#@__infosrc` ORDER BY `orderid` ASC");
if ($dosql->GetTotalRow() > 0) {
    while ($row2 = $dosql->GetArray()) {
        ?>
					<li><a href="javascript:;" title="<?php 
Exemplo n.º 3
0
			<td height="40" align="right">属 性:</td>
			<td class="attrArea"><?php 
$dosql->Execute("SELECT * FROM `#@__infoflag` ORDER BY orderid ASC");
while ($row = $dosql->GetArray()) {
    echo '<span><input type="checkbox" name="flag[]" id="flag[]" value="' . $row['flag'] . '" />' . $row['flagname'] . '[' . $row['flag'] . ']</span>';
}
?>
</td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="26"><div class="line"> </div></td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="0" id="df"><?php 
if (isset($cid)) {
    echo GetDiyField(1, $cid);
}
?>
</td>
		</tr>
		<tr>
			<td height="40" align="right">文章来源:</td>
			<td><input type="text" name="source" id="source" class="input" />
				<span class="srcArea"> <span class="infosrc">选择
				<ul>
					<?php 
$dosql->Execute("SELECT * FROM `#@__infosrc` ORDER BY `orderid` ASC");
if ($dosql->GetTotalRow() > 0) {
    while ($row2 = $dosql->GetArray()) {
        ?>
					<li><a href="javascript:;" title="<?php 
Exemplo n.º 4
0
    while ($r2 = $dosql->GetArray()) {
        echo '<span><input type="checkbox" name="flag[]" id="flag[]" value="' . $r2['flag'] . '"';
        if (in_array($r2['flag'], $flagarr)) {
            echo 'checked="checked"';
        }
        echo ' />' . $r2['flagname'] . '[' . $r2['flag'] . ']</span>';
    }
    ?>
</td>
		</tr>
		<?php 
}
?>
		<tr class="nb">
			<td colspan="2" height="0" id="df"><?php 
echo GetDiyField($r['id'], $row['classid'], $row);
?>
</td>
		</tr>
		<?php 
if (in_array('picurl', $defaultfield)) {
    ?>
		<tr>
			<td height="40" align="right">缩略图片:</td>
			<td><input type="text" name="picurl" id="picurl" class="input" value="<?php 
    echo $row['picurl'];
    ?>
" />
				<span class="cnote"><span class="grayBtn" onclick="GetUploadify('uploadify','缩略图上传','image','image',1,<?php 
    echo $cfg_max_file_size;
    ?>
Exemplo n.º 5
0
while ($r = $dosql->GetArray()) {
    echo '<span><input type="checkbox" name="flag[]" id="flag[]" value="' . $r['flag'] . '"';
    if (in_array($r['flag'], $flagarr)) {
        echo 'checked="checked"';
    }
    echo ' />' . $r['flagname'] . '[' . $r['flag'] . ']</span>';
}
?>
</td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="26"><div class="line"> </div></td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="0" id="df"><?php 
echo GetDiyField('2', $row['classid'], $row);
?>
</td>
		</tr>
		<tr>
			<td height="40" align="right">文章来源:</td>
			<td><input type="text" name="source" id="source" class="input" value="<?php 
echo $row['source'];
?>
" />
				<span class="srcArea"> <span class="infosrc">选择
				<ul>
					<?php 
$dosql->Execute("SELECT * FROM `#@__infosrc` ORDER BY `orderid` ASC");
if ($dosql->GetTotalRow() > 0) {
    while ($row2 = $dosql->GetArray()) {
Exemplo n.º 6
0
		<tr>
			<td height="40" align="right">所属类别:</td>
			<td><select name="mainid" id="mainid" onchange="GetMainType(this.value)">
					<option value="-1">请选择所属类别</option>
					<?php 
    GetAllType('#@__maintype', '#@__info', 'mainid');
    ?>
				</select>
				<span class="maroon">*</span><span id="loading2" class="undis">数据读取中...</span></td>
		</tr>
		<?php 
}
?>
		<tr class="nb">
			<td colspan="2" height="0" id="df"><?php 
echo GetDiyField('0', $id, $row);
?>
</td>
		</tr>
		<tr>
			<td height="304" align="right">内  容:</td>
			<td><textarea name="content" id="content" class="kindeditor"><?php 
echo $content;
?>
</textarea>
				<script>
				var editor;
				KindEditor.ready(function(K) {
					editor = K.create('textarea[name="content"]', {
						allowFileManager : true,
						width:'667px',
Exemplo n.º 7
0
?>
</td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="26"><div class="line"> </div></td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="26" id="getattr"><div style="text-align:center;color:#9C0;">请选择商品分类获取自定义属性</div></td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="26"><div class="line"></div></td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="0" id="df"><?php 
if (isset($cid)) {
    echo GetDiyField(4, $cid);
}
?>
</td>
		</tr>
		<tr>
			<td width="25%" height="40" align="right">运费承担:</td>
			<td><input type="radio" name="payfreight" id="payfreight" value="0"  />
				买家承担&nbsp;
				<input type="radio" name="payfreight" id="payfreight" value="1" checked="checked" />
				卖家承担</td>
		</tr>
		<tr>
			<td height="40" align="right">商品价格:</td>
			<td><input name="marketprice" type="text" id="marketprice" class="inputs" style="width:50px;" />
				市场价
Exemplo n.º 8
0
        echo '该模型下暂无栏目';
    }
    exit;
}
//自定义字段
//添加信息权限
if ($action == 'infoclass') {
    $id = isset($id) ? $id : 0;
    $row = isset($row) ? $row : '';
    $r = $dosql->GetOne("SELECT `infotype` FROM `#@__infoclass` WHERE `id`={$id}");
    if (isset($r['infotype'])) {
        $type = $r['infotype'];
    } else {
        $type = '';
    }
    echo GetDiyField($type, $id, $row);
    exit;
}
//栏目管理
//获取栏目缩略图大小
if ($action == 'catpsize') {
    IsModelPriv('infoclass');
    $str = '';
    $r = $dosql->GetOne("SELECT `picwidth`,`picheight` FROM `#@__infoclass` WHERE `id`=" . $pid);
    if (isset($r['picwidth'])) {
        $str .= $r['picwidth'];
    }
    if (isset($r['picheight'])) {
        $str .= '|' . $r['picheight'];
    }
    echo $str;
Exemplo n.º 9
0
			<td height="40" align="right">属 性:</td>
			<td class="attrArea"><?php 
$dosql->Execute("SELECT * FROM `#@__infoflag` ORDER BY orderid ASC");
while ($row = $dosql->GetArray()) {
    echo '<span><input type="checkbox" name="flag[]" id="flag[]" value="' . $row['flag'] . '" />' . $row['flagname'] . '[' . $row['flag'] . ']</span>';
}
?>
</td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="26"><div class="line"> </div></td>
		</tr>
		<tr class="nb">
			<td colspan="2" height="0" id="df"><?php 
if (isset($cid)) {
    echo GetDiyField(3, $cid);
}
?>
</td>
		</tr>
		<tr>
			<td height="40" align="right">文件类型:</td>
			<td><select name="filetype" id="filetype">
					<option value=".exe">.exe</option>
					<option value=".zip">.zip</option>
					<option value=".rar">.rar</option>
					<option value=".iso">.iso</option>
					<option value=".gz">.gz</option>
					<option value="其它">其它</option>
				</select></td>
		</tr>