Пример #1
0
 public function search($params)
 {
     $query = Lead::find();
     $activeDataProvider = new ActiveDataProvider(["query" => $query, "pagination" => ["pageSize" => 20]]);
     if (!$this->load($params) || !$this->validate()) {
         return $activeDataProvider;
     }
     $query->andFilterWhere(["like", "firstName", $this->firstName])->andFilterWhere(["like", "lastName", $this->lastName])->andFilterWhere(["like", "companyName", $this->companyName])->andFilterWhere(["like", "type", $this->type]);
     return $activeDataProvider;
 }
Пример #2
0
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = Lead::find();
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     $this->load($params);
     if (!$this->validate()) {
         // uncomment the following line if you do not want to return any records when validation fails
         // $query->where('0=1');
         return $dataProvider;
     }
     $query->andFilterWhere(['id' => $this->id, 'budget_tier' => $this->budget_tier, 'budget_mandated' => $this->budget_mandated, 'budget_maintenance' => $this->budget_maintenance, 'budget_innovation' => $this->budget_innovation, 'budget_growth' => $this->budget_growth]);
     $query->andFilterWhere(['like', 'company', $this->company])->andFilterWhere(['like', 'company_url', $this->company_url])->andFilterWhere(['like', 'name', $this->name])->andFilterWhere(['like', 'title', $this->title])->andFilterWhere(['like', 'contacts', $this->contacts])->andFilterWhere(['like', 'company_description', $this->company_description])->andFilterWhere(['like', 'person_biography', $this->person_biography])->andFilterWhere(['like', 'investment_priorities', $this->investment_priorities])->andFilterWhere(['like', 'platforms', $this->platforms])->andFilterWhere(['like', 'cost_reduction_areas', $this->cost_reduction_areas])->andFilterWhere(['like', 'endpoints', $this->endpoints])->andFilterWhere(['like', 'picture', $this->picture]);
     return $dataProvider;
 }
Пример #3
0
}
?>
                    </ul>
                </div>

                <div id="opps" class="tab-pane fade">
                    <h3>Opportunities</h3>
                    <p>A List of validated budget holders with confirmed budget sizes and purchasing priorities.</p>
                    <p>Opportunities Table: <?php 
echo Html::a('Here', ['lead/index']);
?>
</p>

                    <ul>
                        <?php 
foreach (Lead::find()->each() as $lead) {
    echo "<li> " . Html::img($lead->picture, ['width' => '350', 'height' => '350'], ['alt' => $lead->name]) . Html::a($lead->name, ['lead/view', 'id' => $lead->id]) . "</li>";
}
?>
                    </ul>
                </div>

                <div id="tech" class="tab-pane fade">
                    <h3>Tech</h3>
                    <p>Technologies available for use in solutions throughout the Razormind Network.</p>
                    <p>Tech Table</p>

                </div>
                <div id="contracts" class="tab-pane fade">
                    <h3>Contracts</h3>
                    <p>Active and available contracts. It is useful to review available contracts with partners, suppliers, and clients. Razormind acts as guarantor for each contract signed through this system.</p>