Example #1
0
    ?>
        	</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 
Example #2
0
                                 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>
 <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>
Example #4
0
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>';
				echo '<td width="30%" align="right">&nbsp;</td>';
				echo '<td width="70%" align="left"><input name="order" type="submit" value="'.$_LANG['SUBMIT_ORDER'].'" /></td>';
			echo '</tr>';
			echo '</table>';
			echo '</form>';

		} else {
			//NO ITEMS
			echo '<p>'.$_LANG['NOITEMS_IN_CART'].'</p>';
			echo '<div id="cart_buttons2">';
				echo '<a href="/catalog" title="'.$_LANG['BACK_TO_SHOP'].'">';
					echo '<img src="/components/catalog/images/shop/cartback.jpg" border="0" alt="'.$_LANG['BACK_TO_SHOP'].'"/>';
				echo '</a> ';
			echo '</div>';

		}

}
function fenom_function_captcha($params)
{
    return cmsPage::getCaptcha();
}
Example #6
0
        <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 } ?>>
Example #7
0
<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>
Example #8
0
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

function smarty_function_captcha($params, &$smarty){
    return cmsPage::getCaptcha();
}