コード例 #1
0
ファイル: tpl.func.php プロジェクト: pan289091315/Discuz
function showstyletitle($mname, $color)
{
    $lang_title = lang($mname . '_stytletitle');
    $lang_fontcolor = lang($mname . '_fontcolor');
    echo <<<EOF
\t<tr><td class="td27" colspan="2">{$lang_title}</td></tr>
\t<tr class="noborder">
\t\t<td class="vtop rowform" colspan="2">
\t\t\t<span style="float: left;display:none;">{$lang_fontcolor}</span>
EOF;
    echo show_style_picker('subject', $color);
    echo <<<EOF
\t\t</td>
\t</tr>


EOF;
}
コード例 #2
0
ファイル: ads.inc.php プロジェクト: pan289091315/Discuz
    echo '<tbody id="_ads_topic" style="display:none;"><tr><td class="td27" colspan="2">' . lang('ads_topic') . '&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight:100">' . lang('ads_topic_comment') . '</td></tr>';
    echo '<tr><td style="border:none;"><table>';
    for ($i = 0; $i < 7; $i++) {
        echo '<tr class="noborder"><td class="vtop rowform">
		<input type="text" class="txt" value="' . (!empty($editvalue['topic'][$i]) ? $editvalue['topic'][$i]['image'] : '') . '" name="topic[' . $i . '][image]">
	</td>
	<td align="left" class="vtop rowform">
	<input type="text" class="txt" value="' . (!empty($editvalue['topic'][$i]) ? $editvalue['topic'][$i]['url'] : '') . '" name="topic[' . $i . '][url]"></td></tr>';
    }
    echo '</table></td></tr>';
    showtablefooter();
    showtableheader();
    echo '<tr><td class="td27">' . lang('ads_notice') . '<span style="margin-left:80px; font-weight:normal;">' . lang('ads_notice_comment') . '</span></td></tr>';
    echo '<tr><td style="border:none;"><table width="100%">';
    for ($i = 0; $i < 7; $i++) {
        echo '<tr class="noborder"><td class="vtop rowform"><input type="text" class="txt" style="' . pktitlestyle($editvalue['notice'][$i]['style']) . '" value="' . (!empty($editvalue['notice'][$i]) ? $editvalue['notice'][$i]['title'] : '') . '" name="notice[' . $i . '][title]" id="notice' . $i . '"></td><td align="left" class="vtop rowform" style="width:auto;">' . '<input type="text" class="txt" style="float:left;" value="' . (!empty($editvalue['notice'][$i]) ? $editvalue['notice'][$i]['url'] : '') . '" name="notice[' . $i . '][url]" />' . '<div style="float:left; width:200px;">' . show_style_picker('notice' . $i, substr($editvalue['notice'][$i]['style'], 0, 7)) . '</div>' . '</td></tr>';
    }
    echo "</table>";
    showtablefooter();
    showtableheader();
    showsetting('ads_hotgoods', 'hotgoods', $editvalue['hotgoods'], 'text');
    showsetting('ads_consume', 'consume', $editvalue['consume'], 'text');
    showsetting('ads_groupbuy', 'groupbuy', $editvalue['groupbuy'], 'text');
    showsetting('ads_discount', 'discount', $editvalue['discount'], 'text');
    showsetting('ads_hotshop', 'hotshop', $editvalue['hotshop'], 'text');
    showsetting('ads_sidebarconsume', 'sidebarconsume', $editvalue['sidebarconsume'], 'text');
    showsetting('ads_sidebargroupbuy', 'sidebargroupbuy', $editvalue['sidebargroupbuy'], 'text');
    showsetting('ads_sidebarshop', 'sidebarshop', $editvalue['sidebarshop'], 'text');
    showsubmit('settingsubmit', 'submit', '', $extbutton . (!empty($from) ? '<input type="hidden" name="from" value="' . $from . '">' : ''));
    showtablefooter();
    echo '