����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
// +-------------------------------------------------+
// © 2002-2014 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: docwatch_selector_parent_sections.class.php,v 1.2 2015-04-03 11:16:24 jpermanne Exp $
if (stristr($_SERVER['REQUEST_URI'], ".class.php")) die("no access");
/**
* class docwatch_selector_parent_sections
*
*/
class docwatch_selector_parent_sections extends docwatch_selector {
public function get_value(){
global $dbh;
if(!count($this->value) && count($this->parameters['sections'])){
$this->value = array();
$query = "select distinct id_section from cms_sections where section_num_parent in(".implode(",",$this->parameters['sections']).")";
$result = pmb_mysql_query($query,$dbh);
if(pmb_mysql_num_rows($result)){
while($row=pmb_mysql_fetch_object($result)){
$this->value[] = $row->id_section;
}
}
}
return $this->value;
}
public function get_form(){
global $msg,$charset;
$form ="
<div class='row'>
<div class='colonne3'>
<label>".htmlentities($msg['dsi_docwatch_selector_parent_sections_select'],ENT_QUOTES,$charset)."</label>
</div>
<div class='colonne_suite'>".$this->gen_select()."
</div>
</div>
";
return $form;
}
public function set_from_form(){
global $docwatch_selector_parent_sections_select;
$this->parameters['sections'] = $docwatch_selector_parent_sections_select;
}
protected function gen_select(){
global $dbh,$msg,$charset;
if(!$this->id){
$this->parameters = array();
$this->parameters['sections'] = array();
}
$query= "select id_section, section_title from cms_sections";
$result = pmb_mysql_query($query,$dbh);
$select = "
<select name='docwatch_selector_parent_sections_select[]' multiple='yes'>";
if(pmb_mysql_num_rows($result)){
while($row = pmb_mysql_fetch_object($result)){
$select.="
<option value='".$row->id_section."' ".(in_array($row->id_section,$this->parameters['sections']) ? "selected='selected'" : "").">".htmlentities($row->section_title,ENT_QUOTES,$charset)."</option>";
}
}
$select.= "
</select>";
return $select;
}
} // end of docwatch_selector_parent_sections
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| docwatch_selector.class.php | File | 3.18 KB | 0604 |
|
| docwatch_selector_articles_by_sections.class.php | File | 2.44 KB | 0604 |
|
| docwatch_selector_external_sources.class.php | File | 3.35 KB | 0604 |
|
| docwatch_selector_monitoring_website.class.php | File | 1.52 KB | 0604 |
|
| docwatch_selector_notices.class.php | File | 803 B | 0604 |
|
| docwatch_selector_notices_caddie.class.php | File | 2.5 KB | 0604 |
|
| docwatch_selector_notices_dsi.class.php | File | 1.15 KB | 0604 |
|
| docwatch_selector_notices_equation.class.php | File | 1.29 KB | 0604 |
|
| docwatch_selector_parent_sections.class.php | File | 2.21 KB | 0604 |
|
| docwatch_selector_rss.class.php | File | 1.4 KB | 0604 |
|