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


PHP cmsPage::getCaptcha方法代码示例

本文整理汇总了PHP中cmsPage::getCaptcha方法的典型用法代码示例。如果您正苦于以下问题:PHP cmsPage::getCaptcha方法的具体用法?PHP cmsPage::getCaptcha怎么用?PHP cmsPage::getCaptcha使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cmsPage的用法示例。


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

示例1:

    ?>
        	</td>
         </tr>
         <tr><td><?php 
    echo $form_field['field'];
    ?>
</td></tr>
    <?php 
}
?>
    <?php 
if (!$formObj->is_admin && !$formObj->form['only_fields']) {
    ?>
         <tr><td>
            <?php 
    echo cmsPage::getCaptcha();
    ?>
         </td></tr>
    <?php 
}
?>
    <?php 
if (!$formObj->form['only_fields']) {
    ?>
         <tr><td><div style="margin-top:10px">
             <input type="submit" value="<?php 
    echo $_LANG['SEND'];
    ?>
" />
         </div></td></tr>
    <?php 
开发者ID:vityapro,项目名称:cms,代码行数:31,代码来源:formOld.php

示例2: if

                                 return true;
                             }
                         }
                     
                 </script>
             <?php } ?>
         </td>
     </tr>
 <?php } ?>
 <?php if (!$is_user) { ?>
 <tr>
     <td valign="top" class="">
         <div><strong><?php echo $_LANG['SECUR_SPAM']; ?>: </strong></div>
         <div><small><?php echo $_LANG['SECUR_SPAM_TEXT']; ?></small></div>
     </td>
     <td valign="top" class=""><?php echo cmsPage::getCaptcha(); ?></td>
 </tr>
 <?php } ?>
 
 <?php if (($cfg['seo_user_access'] && $is_user) || $is_admin) { ?>
     <tr>
         <td valign="top"><?php echo $_LANG['SEO_PAGETITLE']; ?><div class="hint"><?php echo $_LANG['SEO_PAGETITLE_HINT']; ?></div></td>
         <td>
             <input name="pagetitle" style="width:407px" class="text-input" value="<?php echo $this->escape($item['pagetitle']); ?>" />
         </td>
     </tr>
     <tr>
         <td valign="top"><?php echo $_LANG['SEO_METAKEYS']; ?></td>
         <td>
             <input name="meta_keys" style="width:407px" class="text-input" value="<?php echo $this->escape($item['meta_keys']); ?>" />
         </td>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_board_edit.php

示例3: if

 <td valign="top" width="50%">
     <form method="post" action="">
         <input type="hidden" name="csrf_token" value="<?php echo cmsUser::getCsrfToken(); ?>" />
         
         <div class="lf_title"><?php echo $_LANG['LOGIN']; ?> <?php echo $_LANG['OR']; ?> <?php echo $_LANG['EMAIL']; ?></div>
         <div class="lf_field">
             <input type="text" name="login" id="login_field" tabindex="1"/> <a href="/registration" class="lf_link"><?php echo $_LANG['REGISTRATION']; ?></a>
         </div>
         <div class="lf_title"><?php echo $_LANG['PASS']; ?></div>
         <div class="lf_field">
             <input type="password" name="pass" id="pass_field" tabindex="2"/> <a href="/passremind.html" class="lf_link"><?php echo $_LANG['FORGOT_PASS']; ?></a>
         </div>
         <?php if ($anti_brute_force) { ?>
             <div class="lf_title"><?php echo $_LANG['SECUR_SPAM']; ?></div>
             <div class="lf_field">
                 <?php echo cmsPage::getCaptcha(); ?>
             </div>
         <?php } ?>
         <table border="0" cellpadding="0" cellspacing="0" width="100%">
             <tr>
                 <td width="20"><input type="checkbox" name="remember" value="1" checked="checked" id="remember" tabindex="3" /></td>
                 <td>
                     <label for="remember"><?php echo $_LANG['REMEMBER_ME']; ?></label>
                 </td>
             </tr>
         </table>
         <p class="lf_submit">
             <input type="submit" name="login_btn" value="<?php echo $_LANG['SITE_LOGIN_SUBMIT']; ?>" tabindex="4" />
         </p>
     </form>
 </td>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_registration_login.php

示例4: shopOrder

function shopOrder($cfg){
    $inDB = cmsDatabase::getInstance();
    $inPage = cmsPage::getInstance();
    $inUser = cmsUser::getInstance();
	global $_LANG;
	$user_id = $inUser->id;
	$sid = session_id();

	 	$inPage->setTitle($_LANG['CART_ORDERING']);
		$inPage->addPathway($_LANG['CART'], '/catalog/viewcart.html');
		$inPage->addPathway($_LANG['CART_ORDERING']);

		echo '<div class="con_heading">'.$_LANG['CART_ORDERING'].'</div>';

		echo '<div class="con_description">'.nl2br($cfg['delivery']).'</div>';

		if ($user_id){ $user_sql = "(c.user_id=$user_id OR session_id='$sid')"; } else { $user_sql = "(c.user_id=0 AND c.session_id='$sid')"; }

		$sql = "SELECT i.title as title, i.id as id, i.canmany as canmany, c.id as cid, cat.id as category_id, cat.title as category, c.itemscount as itemscount, i.price as price
				FROM cms_uc_items i, cms_uc_cart c, cms_uc_cats cat
				WHERE $user_sql AND c.item_id = i.id AND i.category_id = cat.id
				ORDER BY c.pubdate";
		$rs = $inDB->query($sql) ;

		if ($inDB->num_rows($rs)){
			//BUILD LIST
			//table
			echo '<form action="/catalog/savecart.html" method="POST" name="cartform">';
			echo '<table width="100%" cellpadding="5" cellspacing="0" border="0">';
			echo '<tr>';
				echo '<td width="16">&nbsp;</td>';
				echo '<td><strong>'.$_LANG['ITEM'].'</strong></td>';
				echo '<td width="200"><strong>'.$_LANG['CAT'].'</strong></td>';
				echo '<td width="120" align="center"><strong>'.$_LANG['QTY'].'</strong></td>';
				echo '<td width="100"  align="center"><strong>'.$_LANG['PRICE'].'</strong></td>';
			echo '</tr>';
			$row=0; $total = 0;
			while($item = $inDB->fetch_assoc($rs)){
				$row++;
				if ($row%2) { $class="search_row1"; } else { $class="search_row2"; }

                $item['realprice'] = $item['price'];
                $item['price'] = shopDiscountPrice($item['id'], $item['category_id'], $item['price']);
                $item['totalprice'] = $item['price'] * $item['itemscount'];

				$item['price'] = number_format($item['price'], 2, '.', '');
				$item['totalprice'] = number_format($item['totalprice'], 2, '.', '');
                $total += $item['totalprice'];
				echo '<tr>';
					echo '<td class="'.$class.'"><img src="/components/catalog/images/icons/cart.png" border="0"></td>';
					echo '<td class="'.$class.'"><a href="/catalog/item'.$item['id'].'.html">'.$item['title'].'</a></td>';
					echo '<td class="'.$class.'"><a href="/catalog/'.$item['category_id'].'">'.$item['category'].'</a></td>';
					echo '<td class="'.$class.'" align="center">'.$item['price'].' x '.$item['itemscount'].' =</td>';
					echo '<td class="'.$class.'" align="center"><strong>'.$item['totalprice'].'</strong></td>';
				echo '</tr>';
			}
			echo '</table>';
			echo '</form>';

			shopDiscountsInfo($total);
            $total = number_format($total, 2, '.', '');

			echo '<div id="cart_total">';
				echo '<span>'.$_LANG['TOTAL_PRICE'].':</span> '.$total.' '.$_LANG['CURRENCY'];
			echo '</div>';

			//DELIVERY INFO FORM
			echo '<div class="con_heading">'.$_LANG['INFO_CUSTOMER'].'</div>';

			echo '<form action="/catalog/finish.html" method="POST">';
			echo '<table width="100%" cellspacing="0" cellpadding="5">';
			echo '<tr>';
				echo '<td width="40%" align="right">'.$_LANG['FIO_CUSTOMER'].': </td>';
				echo '<td width="60%" align="left"><input name="customer_fio" type="text" size="45" value="'.$inUser->nickname.'" /></td>';
			echo '</tr>';
			echo '<tr>';
				echo '<td width="40%" align="right">'.$_LANG['ORGANIZATION'].': </td>';
				echo '<td width="60%" align="left"><input name="customer_company" type="text" size="45" /></td>';
			echo '</tr>';
			echo '<tr>';
				echo '<td width="40%" align="right">'.$_LANG['CONTACT_PHONE'].': </td>';
				echo '<td width="60%" align="left"><input name="customer_phone" type="text" size="45" /></td>';
			echo '</tr>';
			echo '<tr>';
				echo '<td width="40%" align="right">'.$_LANG['ADRESS_EMAIL'].': </td>';
				echo '<td width="60%" align="left"><input name="customer_email" type="text" size="45" value="'.$inUser->email.'" /></td>';
			echo '</tr>';
			echo '<tr>';
				echo '<td width="40%" align="right">'.$_LANG['CUSTOMER_COMMENT'].': </td>';
				echo '<td width="60%" align="left"><input name="customer_comment" type="text" size="45" /></td>';
			echo '</tr>';

			echo '<tr>';
                echo '<td width="40%" align="right">&nbsp;</td>';
				echo '<td width="60%" align="left">';
						echo cmsPage::getCaptcha();
				echo '</td>';
			echo '</tr>';

			echo '<tr>';
//.........这里部分代码省略.........
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:101,代码来源:shopcore.php

示例5: fenom_function_captcha

function fenom_function_captcha($params)
{
    return cmsPage::getCaptcha();
}
开发者ID:myinstantcms,项目名称:dev-component,代码行数:4,代码来源:function.captcha.php

示例6: if

        <input type="hidden" name="target" value="<?php echo $target; ?>"/>
        <input type="hidden" name="target_id" value="<?php echo $target_id; ?>"/>
        <?php if (!$is_user) { ?>
            <div class="cm_guest_name"><label><?php echo $_LANG['YOUR_NAME']; ?>: <input type="text" maxchars="20" size="30" name="guestname" class="text-input" value="" id="guestname" /></label></div>
            <script type="text/javascript">$(document).ready(function(){ $('#guestname').focus(); });</script>
        <?php } ?>
        <?php if ($is_can_bbcode) { ?>
            <div class="usr_msg_bbcodebox"><?php echo $bb_toolbar; ?></div>
            <div class="cm_smiles"><?php echo $smilies; ?></div>
        <?php } ?>
        <div class="cm_editor">
            <textarea id="content" name="content" class="ajax_autogrowarea" style="height:150px;min-height: 150px;"><?php echo $this->escape($comment['content_bbcode']); ?></textarea>
        </div>
        <?php if ($do == 'add') { ?>
            <?php if ($need_captcha) { ?>
                <div class="cm_codebar"><?php echo cmsPage::getCaptcha(); ?></div>
            <?php } ?>
            <div class="submit_cmm">
                <input id="submit_cmm" type="button" value="<?php echo $_LANG['SEND']; ?>"/>
                <input id="cancel_cmm"type="button" onclick="$('.cm_addentry').remove();$('.cm_add_link').show();" value="<?php echo $_LANG['CANCEL']; ?>"/>
            </div>
        <?php } ?>
        <?php if ($is_user && $do == 'add') { ?>
            <?php if (!$user_subscribed) { ?>
                <div style="margin:9px 0; float:right; font-size:12px; vertical-align:middle">
                    <label style="padding:5px"><input name="subscribe" type="checkbox" value="1" style="margin:0; vertical-align:middle" /> <?php echo $_LANG['NOTIFY_NEW_COMM']; ?></label>
                </div>
            <?php } ?>
        <?php } ?>
	</form>
    <div class="sess_messages" <?php if (!$notice) { ?>style="display:none"<?php } ?>>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_comments_add.php

示例7: if

<div style="margin-top:10px"><?php echo $_LANG['SET_QUESTION_TEXT']; ?></div>
<div style="margin-bottom:10px"><?php echo $_LANG['CONTACTS_TEXT']; ?></div>

<?php if ($error) { ?><p style="color:red"><?php echo $error; ?></p><?php } ?>

<form action="" method="POST" name="questform">
    <table cellpadding="0" cellspacing="0" class="faq_add_cat">
        <tr>
            <td width="150">
                <strong><?php echo $_LANG['CAT_QUESTIONS']; ?>: </strong>
            </td>
            <td>
                <select name="category_id" style="width:300px">
                    <?php echo $catslist; ?>
                </select>
            </td>
        </tr>
    </table>

    <textarea name="message" id="faq_message" style=""><?php echo $message; ?></textarea>

    <?php if (!$user_id) { ?>
        <p style="margin-bottom:10px"><?php echo cmsPage::getCaptcha(); ?></p>
    <?php } ?>

    <div>
        <input type="button" style="font-size:16px;margin-right:2px;margin-top:3px;" onclick="sendQuestion()" name="gosend" value="<?php echo $_LANG['SEND']; ?>"/>
        <input type="button" style="font-size:16px;margin-top:3px;" name="cancel" onclick="window.history.go(-1)" value="<?php echo $_LANG['CANCEL']; ?>"/>
    </div>
</form>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:30,代码来源:com_faq_add.php

示例8: smarty_function_captcha

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

function smarty_function_captcha($params, &$smarty){
    return cmsPage::getCaptcha();
}
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:9,代码来源:function.captcha.php


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