當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Lead::Model方法代碼示例

本文整理匯總了PHP中Lead::Model方法的典型用法代碼示例。如果您正苦於以下問題:PHP Lead::Model方法的具體用法?PHP Lead::Model怎麽用?PHP Lead::Model使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Lead的用法示例。


在下文中一共展示了Lead::Model方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: actiongenerateExcel

    public function actiongenerateExcel()
    {
        header("Content-Type: application/vnd.ms-excel;");
        header("Content-Disposition: attachment; filename=export.xls");
        header("Pragma: no-cache");
        header("Expires: 0");
        $countModel = Lead::Model()->findAllByAttributes(array(), array('order' => 'id desc', 'limit' => Yii::app()->Session['datepick']));
        ?>
					<table>
						<tr>
							<th>S.NO</th>
							<th>Lead Title</th>
							<th>Use</th>	
							<th>Retailer Website</th>	
							<th>Tenant Rep</th>	
							<th>First Name</th>
							<th>Last Name</th>
							<th>Phone No</th>
							<th>Email Id</th>
							<th>Title</th>
							<th>High End</th>
							<th>Min Size</th>
							<th>Max Size</th>	
							<th>State</th>	
							<th>Message</th>	
							<th>Broker</th>	
							<th>Broker First Name</th>	
							<th>Broker Last Name</th>	
							<th>Broker Phone Number</th>	
							<th>Broker Cell Number</th>	
							<th>Broker email</th>	
							<th>Broker Company</th>	
							<th>Broker territory</th>	
						</tr>
					<?php 
        $k = 1;
        foreach ($countModel as $data) {
            ?>
						<tr>
							<td><?php 
            echo $k++;
            ?>
</td>
							<td><?php 
            echo $data['retail'];
            ?>
</td>
							<td><?php 
            echo $data['uses'];
            ?>
</td>
							<td><?php 
            echo $data['retailer_webiste'];
            ?>
</td>
							<td><?php 
            echo $data['tenant _rep'];
            ?>
</td>
							<td><?php 
            echo $data['first_name'];
            ?>
</td>
							<td><?php 
            echo $data['last_name'];
            ?>
</td>
							<td><?php 
            echo $data['phone_1'];
            ?>
</td>
							<td><?php 
            echo $data['email_id'];
            ?>
</td>
							<td><?php 
            echo $data['title'];
            ?>
</td>
							<td><?php 
            echo $data['high_end'];
            ?>
</td>
							<td><?php 
            echo $data['min_size'];
            ?>
</td>
							<td><?php 
            echo $data['max_size'];
            ?>
</td>
							<td><?php 
            echo $data['state'];
            ?>
</td>
							<td><?php 
            echo $data['message'];
            ?>
</td>
							<td><?php 
//.........這裏部分代碼省略.........
開發者ID:aftavwani,項目名稱:Master,代碼行數:101,代碼來源:LeadController.php

示例2: array

<option value="100">100</option>
<option value="200">200</option>
<option value="300">300</option>
<option value="400">400</option>
<option value="500">500</option>
<option value="1000">1000</option>
</select>
<input type="submit" class="main-but" name="Filter" value="filter">
</form>

<?php 
if (isset($_POST['Filter']) == 'filter') {
    Yii::app()->Session['datepick'] = $_POST['limit'];
    $lead = Lead::Model()->findAllByAttributes(array(), array('order' => 'id desc', 'limit' => Yii::app()->Session['datepick']));
} else {
    $lead = Lead::Model()->findAll();
}
?>


		<span class="excel">
			<a href="<?php 
echo Yii::app()->baseurl;
?>
/lead/generateExcel"><span style="color: #333333;font-size:17px;font-weight:bold;font: bold 11px Arial;background-color: #EEEEEE;padding: 2px 6px 2px 6px;border-top: 1px solid #CCCCCC;border-right: 1px solid #333333;border-bottom: 1px solid #333333;border-left: 1px solid #CCCCCC;">Save as Excel</span></a></span>
<table class="tab">
	<tr>   
		<th>S.NO</th>
		<th>Name</th>
			
		<th>First Name</th>
開發者ID:aftavwani,項目名稱:Master,代碼行數:31,代碼來源:export.php

示例3: foreach

 ">
							<input type="text" readonly="true" maxlength="255" size="22" value="<?php 
        echo $sas['email_id'];
        ?>
 "></li>
							
							
							
						</div>
						<?php 
    }
    ?>
					
							
							<?php 
    $_Lead = Lead::Model()->findAllByAttributes(array('status' => 4));
    ?>
							
								<?php 
    foreach ($_Lead as $_da) {
        ?>

								<li title=<?php 
        echo $_da['id'];
        ?>
>
									<div class="min-hd"><?php 
        echo strtoupper($_da['retail']);
        ?>
</a></div>
									<input type="text" readonly="true"  maxlength="255" size="22" value="<?php 
開發者ID:aftavwani,項目名稱:Master,代碼行數:31,代碼來源:admin.php


注:本文中的Lead::Model方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。