예제 #1
0
 public function Export_mod($id_modul)
 {
     global $db;
     //Get and Insert Modul
     $this->id_modul = $id_modul;
     parent::get_modul();
     $modul = MySQL::SQLValue($this->modul_info['modul']);
     $description = MySQL::SQLValue($this->modul_info['description']);
     $app_modul = MySQL::SQLValue($this->modul_info['app_modul']);
     $etat = MySQL::SQLValue($this->modul_info['etat']);
     $content = '<?php ' . PHP_EOL;
     $content .= '//Export Module ' . $modul . ' Date: ' . date('d-m-Y') . PHP_EOL;
     $content .= 'global $db;' . PHP_EOL;
     $content .= '$result_insert_modul = $db->Query("insert into modul (modul, description, app_modul, etat)values(' . $modul . ', ' . $description . ',' . $app_modul . ', ' . $etat . ')");' . PHP_EOL;
     //Get Task for this modul
     if ($this->get_tasks_modul()) {
         $content .= $this->list_task_of_modul;
     }
     //creat file into Modul folder
     $file = MPATH_MODULES . $this->modul_info['modul_rep'] . '/script_export.php';
     if (file_exists($file)) {
         unlink($file);
     }
     if (!file_put_contents($file, $content, FILE_APPEND | LOCK_EX)) {
         return false;
     }
     //Creat Archive for this modul
     MZip::zipTree(MPATH_MODULES . $this->modul_info['modul_rep'] . '/', MPATH_TEMP . $this->modul_info['modul_rep'] . '.zip');
     return true;
 }
예제 #2
0
<ul class="dropdown-menu dropdown-menu-right">
<?php 
$actions = new Mmodul();
$actions->id_modul = Mreq::tp('id');
$actions->action_modul();
?>
</ul>
예제 #3
0
        $empty_list .= "<li>Nom de module non valid (a-z 1-9)</li>";
        $checker = 1;
    }
    if ($posted_data['description'] == NULL) {
        $empty_list .= "<li>Déscription</li>";
        $checker = 1;
    }
    if ($posted_data['app'] == NULL) {
        $empty_list .= "<li>Nom de l'application de base</li>";
        $checker = 1;
    }
    if (!MInit::is_regex($posted_data['app'])) {
        $empty_list .= "<li>Nom de l'application non valid (a-z 1-9)</li>";
        $checker = 1;
    }
    $empty_list .= "</ul>";
    if ($checker == 1) {
        exit("0#{$empty_list}");
    }
    //End check empty element
    $new_modul = new Mmodul($posted_data);
    //$new_modul->exige_pkg = true;
    //execute Insert returne false if error
    if ($new_modul->edit_exist_modul()) {
        echo "1#" . $new_modul->log;
    } else {
        echo "0#" . $new_modul->log;
    }
} else {
    view::load('modul_mgr', 'editmodul');
}
예제 #4
0
파일: addmodul_c.php 프로젝트: ATS001/MRN
    //for acceptable empty field do not put here
    $checker = null;
    $empty_list = "Les champs suivants sont obligatoires:\n<ul>";
    if ($posted_data['modul'] == NULL) {
        $empty_list .= "<li>Nom de module</li>";
        $checker = 1;
    }
    if ($posted_data['description'] == NULL) {
        $empty_list .= "<li>Déscription</li>";
        $checker = 1;
    }
    if ($posted_data['app_modul'] == NULL) {
        $empty_list .= "<li>Application de base</li>";
        $checker = 1;
    }
    $empty_list .= "</ul>";
    if ($checker == 1) {
        exit("0#{$empty_list}");
    }
    //End check empty element
    $new_modul = new Mmodul($posted_data);
    //$new_modul->exige_pkg = true;
    //execute Insert returne false if error
    if ($new_modul->save_new_modul()) {
        echo "1#" . $new_modul->log;
    } else {
        echo "0#" . $new_modul->log;
    }
} else {
    view::load('modul_mgr', 'addmodul');
}
예제 #5
0
        $empty_list .= "<li>Nom de l'application</li>";
        $checker = 1;
    }
    if ($posted_data['description'] == NULL) {
        $empty_list .= "<li>Déscription</li>";
        $checker = 1;
    }
    if ($posted_data['app_sys'] == NULL) {
        $empty_list .= "<li>Type de l'Application</li>";
        $checker = 1;
    }
    $empty_list .= "</ul>";
    if ($checker == 1) {
        exit("0#{$empty_list}");
    }
    //End check empty element
    $new_modul = new Mmodul($posted_data);
    //$new_modul->exige_pkg = true;
    //execute Insert returne false if error
    if ($new_modul->save_new_task()) {
        echo "1#" . $new_modul->log;
    } else {
        echo "0#" . $new_modul->log;
    }
} else {
    //check if the modul is the right one
    if (md5(Mreq::tp('id')) != Mreq::tp('idc')) {
        exit('3#<br>Les informations pour cette ligne sont erronées contactez l\'administrateur');
    }
    view::load('modul_mgr', 'addtask');
}
예제 #6
0
<?php

$info_modul = new Mmodul();
$info_modul->id_modul = Mreq::tp('id');
if (md5(MInit::cryptage(Mreq::tp('id'), 1)) != Mreq::tp('idc') or !$info_modul->get_modul()) {
    exit('3#' . $info_modul->log . '<br>Les informations pour cette ligne sont erronées contactez l\'administrateur');
}
?>
<div class="page-header">
	<h1>
		Gestion Modules
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
		</small>
		<?php 
$info_modul->Shw('modul');
?>
	</h1>
</div><!-- /.page-header -->

<div class="row">
	<div class="col-xs-12">
		<div class="clearfix">
			<div class="pull-right tableTools-container">
				<div class="btn-group btn-overlap">
					
					<?php 
TableTools::btn_add('addtask', 'Ajouter Application Task', 'id=' . $info_modul->id_modul . '&idc=' . md5($info_modul->id_modul));
?>
					
				</div>
예제 #7
0
파일: actiontask_c.php 프로젝트: ATS001/MRN
<ul class="dropdown-menu dropdown-menu-right">
<?php 
$actions = new Mmodul();
$actions->id_task = Mreq::tp('id');
$actions->action_task();
?>
</ul>
예제 #8
0
파일: task_v.php 프로젝트: ATS001/MRN
<?php

//Get all modul infos
$info_modul = new Mmodul();
$info_modul->id_modul = Mreq::tp('id');
if (!$info_modul->get_modul()) {
    exit('3#' . $info_modul->log . '<br>Les informations pour cette ligne sont erronées contactez l\'administrateur');
}
?>
<div class="page-header">
	<h1>
		Gestion Modules
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
		</small>
		<?php 
$info_modul->Shw('modul');
?>
	</h1>
</div><!-- /.page-header -->

<div class="row">
	<div class="col-xs-12">
		<div class="clearfix">
			<div class="pull-right tableTools-container">
				<div class="btn-group btn-overlap">
					
					<?php 
TableTools::btn_add('addtask', 'Ajouter Application Task', 'id=' . $info_modul->id_modul);
?>
					
예제 #9
0
파일: rules_v.php 프로젝트: ATS001/MRN
											ID
										</th>
										<th>
											Description
										</th>
										<th width = "5%">
											<input  name="form-field-checkbox" class="check-all ace ace-checkbox-2" type="checkbox">
											<span class="lbl"></span>
										</th>
									</tr>
								</thead>

								<tbody>
<?php 
    //liste user
    $query_modul = new Mmodul();
    global $db;
    if (!$db->Query($query_modul->Get_action_modul($row[0], Mreq::tp('id')))) {
        $db->Kill($db->Error());
    }
    while (!$db->EndOfSeek()) {
        $row = $db->Row();
        ?>
									<tr>
										<td>
											<?php 
        echo $row->action_id;
        ?>
										</td>

										
예제 #10
0
<?php

//Get all modul infos
$info_modul = new Mmodul();
$info_modul->id_modul = Mreq::tp('id');
if (!$info_modul->get_modul()) {
    exit('3#' . $info_modul->log . '<br>Les informations pour cette ligne sont erronées contactez l\'administrateur');
}
?>


<div class="pull-right tableTools-container">
	<div class="btn-group btn-overlap">
					
		<?php 
TableTools::btn_back('task', 'Liste Application Task', 'id=' . $info_modul->id_modul);
?>
					
	</div>
</div>
<div class="page-header">
	<h1>
		Ajouter Application Task pour Modul : "<?php 
echo $info_modul->Shw('modul');
?>
"
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
		</small>
	</h1>
</div><!-- /.page-header -->
예제 #11
0
<?php

//Get all compte info
$info_modul = new Mmodul();
$info_modul->id_modul = Mreq::tp('id');
if (md5(MInit::cryptage(Mreq::tp('id'), 1)) != Mreq::tp('idc') or !$info_modul->get_modul()) {
    exit('3#' . $info_modul->log . '<br>Les informations pour cette ligne sont erronées contactez l\'administrateur');
}
?>
<div class="pull-right tableTools-container">
	<div class="btn-group btn-overlap">
					
		<?php 
TableTools::btn_back('modul', 'Liste utilisateur');
?>
					
	</div>
</div>
<div class="page-header">
	<h1>
		<?php 
echo ACTIV_APP;
?>
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
		</small>
	</h1>
</div><!-- /.page-header -->
<div class="row">
	<div class="col-xs-12">
		<div class="clearfix">