Commit a1d66f41 authored by reynaldi adriantama's avatar reynaldi adriantama

new push

parent a0a3ef35
...@@ -128,6 +128,19 @@ return [ ...@@ -128,6 +128,19 @@ return [
], ],
], ],
], ],
'koordinator' => [
'type' => Segment::class,
'options' => [
'route' => '/koordinator[/][:action][/:id]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => [
'controller' => Controller\KoordinatorController::class,
'action' => 'index',
],
],
],
'superadmin' => [ 'superadmin' => [
'type' => Segment::class, 'type' => Segment::class,
'options' => [ 'options' => [
...@@ -247,6 +260,7 @@ return [ ...@@ -247,6 +260,7 @@ return [
Controller\UserController::class => Factory\UserControllerFactory::class, Controller\UserController::class => Factory\UserControllerFactory::class,
Controller\ApiController::class => InvokableFactory::class, Controller\ApiController::class => InvokableFactory::class,
Controller\JsondataController::class => Factory\JsondataControllerFactory::class, Controller\JsondataController::class => Factory\JsondataControllerFactory::class,
Controller\KoordinatorController::class => Factory\KoordinatorControllerFactory::class,
], ],
], ],
......
...@@ -21,7 +21,7 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -21,7 +21,7 @@ class AdminController extends \Application\Master\GlobalActionController
public function indexAction() public function indexAction()
{ {
// print_r("here");die;
$this->isLoggedIn(); $this->isLoggedIn();
$view = new ViewModel(); $view = new ViewModel();
...@@ -29,7 +29,7 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -29,7 +29,7 @@ class AdminController extends \Application\Master\GlobalActionController
/* ini hanya contoh return dari factory IndexControllerFactory gan, dani tamvan */ /* ini hanya contoh return dari factory IndexControllerFactory gan, dani tamvan */
$userSession = $this->getSession(); $userSession = $this->getSession();
// print_r("here");die;
/* redirect by role */ /* redirect by role */
if($userSession->get('role') == 200){ if($userSession->get('role') == 200){
$this->redirect()->toRoute('mahasiswa'); $this->redirect()->toRoute('mahasiswa');
...@@ -38,14 +38,16 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -38,14 +38,16 @@ class AdminController extends \Application\Master\GlobalActionController
} else if($userSession->get('role') == 210){ } else if($userSession->get('role') == 210){
$this->redirect()->toRoute('kaprodi'); $this->redirect()->toRoute('kaprodi');
} else if($userSession->get('role') == 1){ } else if($userSession->get('role') == 1){
// $this->redirect()->toRoute('superadmin');
$this->layout('layout/layout_superadmin'); $this->layout('layout/layout_superadmin');
} else if($userSession->get('role') == 300){
$this->layout('layout/layout_koordinator');
} else { } else {
$this->layout('layout/layout_admin'); $this->layout('layout/layout_admin');
} }
$owner = $userSession->owner(); $owner = $userSession->owner();
// print_r($this->layout)
// print_r($owner);die;
if($owner){ if($owner){
$view->setVariable('namaste', $userSession->get('name')); $view->setVariable('namaste', $userSession->get('name'));
...@@ -352,7 +354,14 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -352,7 +354,14 @@ class AdminController extends \Application\Master\GlobalActionController
// $this->layout()->name = $userSession->get('usernamed'); // $this->layout()->name = $userSession->get('usernamed');
// $this->layout()->name1 = $userSession->get('name'); // $this->layout()->name1 = $userSession->get('name');
$role = $userSession->get('role');
if($role == 300){
$this->layout("layout/layout_koordinator");
}else{
$this->layout("layout/layout_admin"); $this->layout("layout/layout_admin");
}
return $view; return $view;
...@@ -500,6 +509,7 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -500,6 +509,7 @@ class AdminController extends \Application\Master\GlobalActionController
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null'); $this->headScript->appendScript(' var iduser = null');
$this->headScript->appendScript(' var kodeprodi = null');
// $this->headScript->appendScript(' var nim = "' . $decodeid . '"'); // $this->headScript->appendScript(' var nim = "' . $decodeid . '"');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"'); $this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
$this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"'); $this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"');
...@@ -624,7 +634,6 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -624,7 +634,6 @@ class AdminController extends \Application\Master\GlobalActionController
public function userkaprodiAction(){ public function userkaprodiAction(){
$this->isLoggedIn(); $this->isLoggedIn();
$view = new ViewModel(); $view = new ViewModel();
$result = new Result(); $result = new Result();
...@@ -654,4 +663,37 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -654,4 +663,37 @@ class AdminController extends \Application\Master\GlobalActionController
return $view; return $view;
} }
public function userkoordinatorAction(){
$this->isLoggedIn();
$view = new ViewModel();
$result = new Result();
$userSession = $this->getSession();
$owner = $userSession->owner();
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
$this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"');
$this->headScript->appendFile($baseurl.'/action-js/admin-js/action-user-koordinator.js');
if($userSession->get('role') == 1){
$this->layout("layout/layout_superadmin");
} else {
$this->layout("layout/layout_admin");
}
$view->setVariables(array(
'action' => $this->params('action'),
));
return $view;
}
} }
...@@ -68,7 +68,7 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -68,7 +68,7 @@ class ApiController extends \Application\Master\GlobalActionController {
$result = new Result(); $result = new Result();
$request = $this->getRequest(); $request = $this->getRequest();
$post = $request->getPost(); $post = $request->getPost();
// print_r($post->username);die;
if($request->isPost()){ if($request->isPost()){
try{ try{
...@@ -76,8 +76,8 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -76,8 +76,8 @@ class ApiController extends \Application\Master\GlobalActionController {
$strip = 'ns1:'; $strip = 'ns1:';
$strip2 = null; $strip2 = null;
$username = $this->isFieldMandatory($post->usernam3, 'usernam3'); $username = $this->isFieldMandatory($post->username, 'username');
$password = $this->isFieldMandatory($post->passw0rds, 'passw0rds'); $password = $this->isFieldMandatory($post->passwd, 'password');
$curl = curl_init(); $curl = curl_init();
...@@ -177,7 +177,7 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -177,7 +177,7 @@ class ApiController extends \Application\Master\GlobalActionController {
$strip = 'ns1:'; $strip = 'ns1:';
$strip2 = null; $strip2 = null;
$username = $this->isFieldMandatory($post->usernam3, 'usernam3'); $username = $this->isFieldMandatory($post->username, 'usernam3');
$curl = curl_init(); $curl = curl_init();
...@@ -242,8 +242,10 @@ class ApiController extends \Application\Master\GlobalActionController { ...@@ -242,8 +242,10 @@ class ApiController extends \Application\Master\GlobalActionController {
$out[$index] = ( is_object ( $node ) ) ? xml2array ( $node ) : $node; $out[$index] = ( is_object ( $node ) ) ? xml2array ( $node ) : $node;
$return = $out['return']; $return = $out['return'];
$return = rtrim($return, ';');
$return = str_replace('=>','":"', $return); $return = str_replace('=>','":"', $return);
$return = str_replace(';','","', $return); $return = str_replace(';','","', $return);
$return = '{"'.$return.'"}'; $return = '{"'.$return.'"}';
$return = json_decode($return,true); $return = json_decode($return,true);
} }
......
...@@ -78,7 +78,13 @@ class JadwalController extends \Application\Master\GlobalActionController ...@@ -78,7 +78,13 @@ class JadwalController extends \Application\Master\GlobalActionController
// $this->layout()->name = $userSession->get('usernamed'); // $this->layout()->name = $userSession->get('usernamed');
// $this->layout()->name1 = $userSession->get('name'); // $this->layout()->name1 = $userSession->get('name');
if($userSession->get('role') == 300){
$this->layout("layout/layout_koordinator");
}else{
$this->layout("layout/layout_admin"); $this->layout("layout/layout_admin");
}
$view->setVariables(array( $view->setVariables(array(
// 'controller' => $this->params('controller'), // 'controller' => $this->params('controller'),
'action' => $this->params('action'), 'action' => $this->params('action'),
...@@ -98,6 +104,17 @@ class JadwalController extends \Application\Master\GlobalActionController ...@@ -98,6 +104,17 @@ class JadwalController extends \Application\Master\GlobalActionController
$userSession = $this->getSession(); $userSession = $this->getSession();
$owner = $userSession->owner(); $owner = $userSession->owner();
// print_r($userSession->get('role'));die;;
$role = $userSession->get('role');
if($role == 300){
$this->layout("layout/layout_koordinator");
$this->headScript->appendScript(' var kodeprodi = "' . $userSession->get('koordinator') . '"');
}else{
$this->layout("layout/layout_admin");
$this->headScript->appendScript(' var kodeprodi = null');
}
/* get url */ /* get url */
$uri = $this->getRequest()->getUri(); $uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
...@@ -113,7 +130,7 @@ class JadwalController extends \Application\Master\GlobalActionController ...@@ -113,7 +130,7 @@ class JadwalController extends \Application\Master\GlobalActionController
// $this->layout()->name = $userSession->get('usernamed'); // $this->layout()->name = $userSession->get('usernamed');
// $this->layout()->name1 = $userSession->get('name'); // $this->layout()->name1 = $userSession->get('name');
$this->layout("layout/layout_admin");
$view->setVariables(array( $view->setVariables(array(
// 'controller' => $this->params('controller'), // 'controller' => $this->params('controller'),
'action' => $this->params('action'), 'action' => $this->params('action'),
......
...@@ -450,7 +450,7 @@ class KaprodiController extends \Application\Master\GlobalActionController ...@@ -450,7 +450,7 @@ class KaprodiController extends \Application\Master\GlobalActionController
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
// print_r($userSession->get('kodeprodi'));die; // print_r($userSession->get('kodeprodi'));die;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var kodeprodi = "' . $userSession->get('kodeprodi') . '"'); $this->headScript->appendScript(' var kodeprodi = "' . $userSession->get('kaprodi') . '"');
$this->headScript->appendScript(' var iduser = null'); $this->headScript->appendScript(' var iduser = null');
// $this->headScript->appendScript(' var nim = "' . $decodeid . '"'); // $this->headScript->appendScript(' var nim = "' . $decodeid . '"');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"'); $this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
......
<?php
/**
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Application\Controller;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
use Khansia\Generic\Result;
class KoordinatorController extends \Application\Master\GlobalActionController
{
public function __construct($headScript)
{
$this->headScript = $headScript;
}
public function indexAction()
{
$this->isLoggedIn();
$view = new ViewModel();
$result = new Result();
/* ini hanya contoh return dari factory IndexControllerFactory gan, dani tamvan */
$userSession = $this->getSession();
$owner = $userSession->owner();
if($owner){
$view->setVariable('namaste', $userSession->get('name'));
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$actionName = $this->params('action');
$this->headScript->appendScript(' var nopeg = "' . $userSession->get('usernamed') . '"');
$this->headScript->appendScript(' var nim;');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
$this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"');
$this->headScript->appendFile($baseurl.'/action-js/global-js/sipenkp-global-action.js');
$this->headScript->appendFile($baseurl.'/action-js/index-js/action-index.js');
$this->layout("layout/layout_koordinator");
return $view;
}else{
return $this->redirect()->toRoute('login');
}
}
public function pilihpengujiAction(){
$this->isLoggedIn();
// echo $this->userdata();
$view = new ViewModel();
$result = new Result();
$userSession = $this->getSession();
$owner = $userSession->owner();
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$urlvar = base64_decode(urldecode($_GET['nim']));
// echo $urlvar;die;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
$this->headScript->appendScript(' var nim = "' . $urlvar . '"');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
$this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"');
$this->headScript->appendFile($baseurl.'/action-js/admin-js/action-upload-berkas.js');
$this->headScript->appendFile($baseurl.'/action-js/admin-js/action-pilih-penguji.js');
// $this->layout()->name = $userSession->get('usernamed');
// $this->layout()->name1 = $userSession->get('name');
$this->layout("layout/layout_koordinator");
return $view;
}
public function updatejadwalAction(){
$this->isLoggedIn();
// echo $this->userdata();
$view = new ViewModel();
$result = new Result();
$userSession = $this->getSession();
$owner = $userSession->owner();
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$urlvar = base64_decode(urldecode($_GET['nim']));
// echo $$_GET['nim'];die;
// print_r($baseurl.'/action-js/admin-js/action-pilih-penguji.js');die;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
$this->headScript->appendScript(' var nim = "' . $urlvar . '"');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
$this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"');
$this->headScript->appendFile($baseurl.'/action-js/admin-js/action-upload-berkas.js');
$this->headScript->appendFile($baseurl.'/action-js/admin-js/action-pilih-penguji.js');
// $this->layout()->name = $userSession->get('usernamed');
// $this->layout()->name1 = $userSession->get('name');
$this->layout("layout/layout_koordinator");
return $view;
}
public function pilihpembimbingAction(){
$this->isLoggedIn();
$view = new ViewModel();
$result = new Result();
$userSession = $this->getSession();
$owner = $userSession->owner();
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
$this->headScript->appendScript(' var kodeprodi = "' . $userSession->get('koordinator') . '"');
// $this->headScript->appendScript(' var nim = "' . $decodeid . '"');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
$this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"');
$this->headScript->appendFile($baseurl.'/action-js/admin-js/action-pilih-pembimbing.js');
$this->layout("layout/layout_koordinator");
$view->setVariables(array(
'action' => $this->params('action'),
'nim' => $userSession->get('usernamed'),
'name' => $userSession->get('name'),
));
return $view;
}
public function approvalseminarAction(){
$this->isLoggedIn();
$view = new ViewModel();
$result = new Result();
$userSession = $this->getSession();
$owner = $userSession->owner();
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var iduser = null');
$this->headScript->appendScript(' var kodeprodi = "' . $userSession->get('koordinator') . '"');
// $this->headScript->appendScript(' var nim = "' . $decodeid . '"');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
$this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"');
$this->headScript->appendFile($baseurl.'/action-js/koordinator-js/action-approval-seminar.js');
$this->layout("layout/layout_koordinator");
$view->setVariables(array(
'action' => $this->params('action'),
'nim' => $userSession->get('usernamed'),
'name' => $userSession->get('name'),
));
return $view;
}
}
...@@ -112,6 +112,7 @@ class MahasiswaController extends \Application\Master\GlobalActionController ...@@ -112,6 +112,7 @@ class MahasiswaController extends \Application\Master\GlobalActionController
// $this->headScript->appendScript(' var nim = "' . $decodeid . '"'); // $this->headScript->appendScript(' var nim = "' . $decodeid . '"');
$this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"'); $this->headScript->appendScript(' var PHRASE = "' . self::PHRASE . '"');
$this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"'); $this->headScript->appendScript(' var CODE_SUCCESS = "' . $result::CODE_SUCCESS . '"');
$this->headScript->appendScript(' var role = "' .$role.'"');
$this->headScript->appendFile($baseurl.'/action-js/mahasiswa-js/action-pendaftaran_mhs.js'); $this->headScript->appendFile($baseurl.'/action-js/mahasiswa-js/action-pendaftaran_mhs.js');
......
...@@ -164,7 +164,11 @@ class PenilaianController extends \Application\Master\GlobalActionController ...@@ -164,7 +164,11 @@ class PenilaianController extends \Application\Master\GlobalActionController
$this->headScript->appendFile($baseurl.'/action-js/penilaian-js/action-penilaian-nilaikp.js'); $this->headScript->appendFile($baseurl.'/action-js/penilaian-js/action-penilaian-nilaikp.js');
if($userSession->get('role') == 300){
$this->layout("layout/layout_koordinator");
}else{
$this->layout("layout/layout_admin"); $this->layout("layout/layout_admin");
}
return $view; return $view;
}else{ }else{
return $this->redirect()->toRoute('login'); return $this->redirect()->toRoute('login');
......
<?php
namespace Application\Factory;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;
class KoordinatorControllerFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
/* get helpermanager gan */
$headScript = $container->get('ViewHelperManager')->get('headScript');
return new \Application\Controller\KoordinatorController($headScript);
}
}
\ No newline at end of file
This diff is collapsed.
<style> <style>
#submit{ #submit, #submitnew{
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
...@@ -70,10 +70,10 @@ ...@@ -70,10 +70,10 @@
</div> </div>
</div> --> </div> -->
</div> </div>
<div class="row"> <div class="row" style="display: none">
<div class="col-lg-3 col-md-4"> <div class="col-lg-3 col-md-4">
<div class="row"> <div class="row" >
<div class="col-lg-12"> <div class="col-lg-12">
<div class="thumbnail"> <div class="thumbnail">
<div class="caption text-center"> <div class="caption text-center">
...@@ -130,15 +130,11 @@ ...@@ -130,15 +130,11 @@
<div class="panel panel-flat"> <div class="panel panel-flat">
<div class="panel-heading"> <div class="panel-heading">
<h5 class="panel-title">Buat Jadwal</h5> <h5 class="panel-title">Buat Jadwal</h5>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal"> <form class="form-horizontal">
<!-- <!-- <div class="form-group">
<div class="form-group">
<label class="col-lg-2 control-label text-semibold">Pembimbing :</label> <label class="col-lg-2 control-label text-semibold">Pembimbing :</label>
<div class="col-lg-10"> <div class="col-lg-10">
<div class="input-group"> <div class="input-group">
...@@ -207,6 +203,123 @@ ...@@ -207,6 +203,123 @@
</div> </div>
</div> </div>
<!-- newest -->
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title text-center" id="isprodi"></h5>
<span style="float: right; color: blue;cursor: pointer;" onclick="addrowselect()" id="addrowselect">+Tambah mahasiswa</span>
</div>
<div class="panel-body">
<!-- <center><h5 id="isprodi">Program Studi Teknik Mesin</h5></center> -->
<form class="form-horizontal">
<!-- <div class="form-group">
<label class="col-lg-2 control-label text-semibold">Pembimbing :</label>
<div class="col-lg-10">
<div class="input-group">
<span class="input-group-addon"><i class="icon-home4"></i></span> -->
<input id="kdpembimbing" type="hidden" class="form-control" placeholder="Pembimbing&hellip;" disabled>
<!-- </div>
</div>
</div> -->
<div id="listmforj">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="col-lg-2 control-label text-semibold">Mahasiswa :</label>
<div class="col-lg-10">
<select id="nimselect" class="select" disabled>
</select>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="col-lg-2 control-label text-semibold">Pembimbing :</label>
<div class="col-lg-10">
<select id="pembimbingselect" class="select" disabled>
</select>
</div>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="col-lg-2 control-label text-semibold">Tanggal :</label>
<div class="col-lg-10">
<div class="input-group">
<span class="input-group-addon"><i class="icon-calendar22"></i></span>
<input id="tanggalnew"type="text" class="form-control pickadate" placeholder="Tanggal Presentasi&hellip;" value="">
</div>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label text-semibold">Jam :</label>
<div class="col-lg-10">
<div class="input-group">
<span class="input-group-addon"><i class="icon-alarm"></i></span>
<input id="jamnew"type="text" class="form-control pickatime-disabled" placeholder="Jam Presentasi&hellip;">
</div>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label text-semibold">Ruang :</label>
<div class="col-lg-10">
<div class="input-group">
<span class="input-group-addon"><i class="icon-home4"></i></span>
<input id="ruangnew"type="url" class="form-control" placeholder="Url ruang&hellip;">
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="col-lg-2 control-label text-semibold">Penguji :</label>
<div class="col-lg-10">
<select id="penguji1new" class="select">
</select>
</div>
</div>
<div id='appendedPenguji'>
</div>
<span style="float: right; color: blue;cursor: pointer; display: none" onclick="addrowpenguji()" id="addrwp">+Tambah penguji</span>
</div>
</div>
</form>
<hr>
<div class="row justify-content-center">
<span id ="submitnew"class="btn btn-primary">submit</span>
</div>
</div>
</div>
<!-- end of newest -->
</div> </div>
</div> </div>
......
...@@ -149,7 +149,7 @@ input::-webkit-inner-spin-button { ...@@ -149,7 +149,7 @@ input::-webkit-inner-spin-button {
</div> </div>
</div> </div>
<div class="panel-group panel-group-control panel-group-control-right content-group-lg" style="margin-top:-10px"> <div class="panel-group panel-group-control panel-group-control-right content-group-lg" style="margin-top:-10px; display: none" >
<span id="accordion-control-right"> <span id="accordion-control-right">
<div class="panel panel-white"> <div class="panel panel-white">
...@@ -179,7 +179,7 @@ input::-webkit-inner-spin-button { ...@@ -179,7 +179,7 @@ input::-webkit-inner-spin-button {
</div> </div>
<div class="panel-group panel-group-control panel-group-control-right content-group-lg" style="margin-top:-20px"> <div class="panel-group panel-group-control panel-group-control-right content-group-lg" style="margin-top:20px">
<span id="accordion-control-right"> <span id="accordion-control-right">
<div class="panel panel-white"> <div class="panel panel-white">
<div class="panel-heading"> <div class="panel-heading">
......
...@@ -248,11 +248,11 @@ ...@@ -248,11 +248,11 @@
</div> </div>
</div> </div>
<div class="col-lg-12"> <!-- <div class="col-lg-12">
<h6 id='head'>Nilai Pembimbing</h6> <h6 id='head'>Nilai Pembimbing</h6>
<hr> <hr>
<div class="form-horizontal" id="nilaipembimbing"> <div class="form-horizontal" id="nilaipembimbing">
<!-- <div class="form-group"> <div class="form-group">
<label class="col-lg-2 control-label text-semibold">Nilai :</label> <label class="col-lg-2 control-label text-semibold">Nilai :</label>
<div class="col-lg-10"> <div class="col-lg-10">
<div class="input-group"> <div class="input-group">
...@@ -260,9 +260,9 @@ ...@@ -260,9 +260,9 @@
<input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled> <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
</div> </div>
</div> </div>
</div> -->
</div> </div>
</div> </div>
</div> -->
<div class="col-lg-12"> <div class="col-lg-12">
<h6 id='head'>Nilai Penguji</h6> <h6 id='head'>Nilai Penguji</h6>
......
<style>
.modal-header{
background: #09c !important;
}
.modal-title{
color: white;
margin-bottom: 15px;
}
</style>
<div class="content-wrapper">
<div class="content">
<!-- <p>mahasiswa pendaftaran</p>
<p><?php //echo $this->nim;?></p>
<p><?php //echo $this->name; ?></p>
<div class="panel panel-default">
hi bro
</div> -->
<div class="page-header-content">
<div class="page-title">
<h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold">Koordinator</span> - Approval Seminar </h4>
<ul class="breadcrumb position-right">
<li><a href="index.html">Home</a></li>
<li class="">Mahasiswa</li>
<li class="active">Approval Seminar</li>
<!-- <li class="active">Upload Berkas</li> -->
</ul>
</div>
</div>
<div class="panel panel-white">
<div class="panel-heading">
<h6 class="panel-title text-semibold">Approval Seminar </h6>
<!-- <div class="heading-elements">
<button type="button" class="btn btn-primary heading-btn btn-modal"><span class="icon-envelope"></span> Buat Surat Pengajuan</button>
</div> -->
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table data-list table-stripped table-lg datatable-dom-position table-hover" id="list_approval">
<thead>
<tr>
<th scope="col" class="text-center text-muted" style="width: 30px;">#No</th>
<th>NIM</th>
<th>Nama Mahasiswa</th>
<th>Program Studi</th>
<th>Pembimbing</th>
<th>Approval Seminar</th>
<th>Action</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
<style>
.btn-success {
color: #fff;
background-color: #009688;
border-color: #0fbfbf;
}
.input-group-addon:first-child {
border-right: 0;
border-left: 0;
border-top: 0;
border-color: #ffffff;
}
.panel-rectangle {
width: 100%;
height: 165px;
margin-left: auto;
margin-right: auto;
margin-bottom: 40px;
left: 166px;
top: 154.85px;
background: #5BA9DD;
border-radius: 20px;
}
.media-right-rectangle{
width: 500px;
float: right;
margin-right: -30px;
margin-top: -40px;
}
.panel-title{
font-weight: bold;
font-size: 26px;
line-height: 26px;
/* or 100% */
}
.panel-body-rectangle{
padding: 50px;
font-family: Helvetica;
font-style: normal;
color: #FFFFFF;
}
.panel-body{
border-radius: 10px;
}
#imgtth{
width:80%;
position:relative;
}
@media only screen and (max-width: 600px) {
.panel-body-rectangle{
padding: 50px;
font-family: Helvetica;
font-style: normal;
color: black;
/* width:50%; */
}
#imgtth{
width:70%;
position:static;
margin-left: 80px;
}
}
</style>
<div class="content" >
<div class="content-wrapper">
<!-- Page header -->
<!-- <div class="page-header page-header-default">
<div class="breadcrumb-line">
<ul class="breadcrumb" id="pageheader">
<li><a href="#"><i class="icon-home2 position-left"></i>Home</a></li>
<li class="active">Dashboard</li>
</ul>
</div>
</div> -->
<!-- /page header -->
<!-- Content area -->
<div class="content">
<!-- Simple statistics -->
<h6 class="content-group text-semibold">
Dashboard Dosen
<small class="display-block">Kerja Praktik FTMD ITB </small>
</h6>
<div class="panel panel-rectangle">
<div class="media-right-rectangle">
<img id="imgtth" src="<?php echo '//'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$this->basePath();?>/img/menu/Studying-pana.png" alt="" style="">
</div>
<div class="panel-body panel-body-rectangle">
<div class="panel-title">Selamat Datang, <?php echo $this->namaste; ?></div>
<!-- <h5>Pelajari lebih lanjut tentang sipintar</h5> -->
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-3">
<div class="panel panel-body">
<div class="media no-margin">
<div class="media-left media-middle">
<img src="<?php echo '//'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$this->basePath();?>/img/menu/Group1.png">
</div>
<div class="media-body">
<h3 id="totalbimbingan" class="no-margin">890</h3>
<span class="text-uppercase text-size-mini">Jumlah Mahasiswa Bimbingan</span>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="panel panel-body">
<div class="media no-margin">
<div class="media-left media-middle">
<img src="<?php echo '//'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$this->basePath();?>/img/menu/Group2.png">
</div>
<div class="media-body">
<h3 id="jadwal" class="no-margin">890</h3>
<span class="text-uppercase text-size-mini">Jumlah Jadwal Penguji</span>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="panel panel-body">
<div class="media no-margin">
<div class="media-left media-middle">
<img src="<?php echo '//'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$this->basePath();?>/img/menu/Group2.png">
</div>
<div class="media-body">
<h3 id="mhselesai"class="no-margin">890</h3>
<span class="text-uppercase text-size-mini">Jumlah Mahasiswa Bimbingan Selesai KP</span>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="panel panel-body">
<div class="media no-margin">
<div class="media-left media-middle">
<img src="<?php echo '//'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$this->basePath();?>/img/menu/Group4.png">
</div>
<div class="media-body">
<h3 id="mhgagal"class="no-margin">890</h3>
<span class="text-uppercase text-size-mini">Jumlah Mahasiswa Bimbingan Gagal KP</span>
</div>
</div>
</div>
</div>
</div> <!-- /simple statistics -->
</div>
</div>
</div>
...@@ -322,8 +322,8 @@ ...@@ -322,8 +322,8 @@
<button style="margin:7px 0px" type="button" class="btn btn-secondary heading-btn btn-download btn-block" ><span class="icon-move-down"></span> Download Surat Pengajuan</button> <button style="margin:7px 0px" type="button" class="btn btn-secondary heading-btn btn-download btn-block" ><span class="icon-move-down"></span> Download Surat Pengajuan</button>
<button style="margin:7px 0px" type="button" class="btn btn-secondary heading-btn btn-fnilai btn-block" ><span class="icon-move-down"></span> Download Form Penilaian Perusahaan</button> <button style="margin:7px 0px" type="button" class="btn btn-secondary heading-btn btn-fnilai btn-block" ><span class="icon-move-down"></span> Download Form Penilaian Perusahaan</button>
<button style="margin:7px 0px" type="button" class="btn btn-secondary heading-btn btn-fhadir btn-block" ><span class="icon-move-down"></span> Download Form Daftar Hadir KP</button> <button style="margin:7px 0px" type="button" class="btn btn-secondary heading-btn btn-fhadir btn-block" ><span class="icon-move-down"></span> Download Form Daftar Hadir KP</button>
<a id="download-fhadir" href="../data/forms/daftarhadir.pdf" download="Form Daftar Hadir Kerja Praktik.pdf"></a> <a id="download-fhadir" href="../data/forms/daftarhadir.pdf" download="Form Penilaian Perusahaan.pdf"></a>
<a id="download-fnilai" href="../data/forms/nilaiperusahaan.pdf" download="Form Penilaian Perusahaan.pdf"></a> <a id="download-fnilai" href="../data/forms/nilaiperusahaan.pdf" download="Form Daftar Hadir Kerja Praktik.pdf"></a>
<!-- <button style="margin:7px 0px" type="button" class="btn btn-secondary heading-btn btn-conf btn-block"><span class="icon-city"></span> Konfirmasi Perusahaan</button> --> <!-- <button style="margin:7px 0px" type="button" class="btn btn-secondary heading-btn btn-conf btn-block"><span class="icon-city"></span> Konfirmasi Perusahaan</button> -->
</div> </div>
</div> </div>
......
...@@ -173,11 +173,11 @@ ...@@ -173,11 +173,11 @@
</div> </div>
</div> </div>
<div class="col-lg-12"> <!-- <div class="col-lg-12">
<h6 id='head'>Nilai Pembimbing</h6> <h6 id='head'>Nilai Pembimbing</h6>
<hr> <hr>
<div class="form-horizontal" id="nilaipembimbing"> <div class="form-horizontal" id="nilaipembimbing">
<!-- <div class="form-group"> <div class="form-group">
<label class="col-lg-2 control-label text-semibold">Nilai :</label> <label class="col-lg-2 control-label text-semibold">Nilai :</label>
<div class="col-lg-10"> <div class="col-lg-10">
<div class="input-group"> <div class="input-group">
...@@ -185,9 +185,9 @@ ...@@ -185,9 +185,9 @@
<input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled> <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
</div> </div>
</div> </div>
</div> -->
</div> </div>
</div> </div>
</div> -->
<div class="col-lg-12"> <div class="col-lg-12">
<h6 id='head'>Nilai Penguji</h6> <h6 id='head'>Nilai Penguji</h6>
...@@ -283,11 +283,11 @@ ...@@ -283,11 +283,11 @@
</div> </div>
</div> </div>
<div class="col-lg-12"> <!-- <div class="col-lg-12">
<h6 id='head'>Nilai Pembimbing</h6> <h6 id='head'>Nilai Pembimbing</h6>
<hr> <hr>
<div class="form-horizontal" id="nilaipembimbingl"> <div class="form-horizontal" id="nilaipembimbingl">
<!-- <div class="form-group"> <div class="form-group">
<label class="col-lg-2 control-label text-semibold">Nilai :</label> <label class="col-lg-2 control-label text-semibold">Nilai :</label>
<div class="col-lg-10"> <div class="col-lg-10">
<div class="input-group"> <div class="input-group">
...@@ -295,9 +295,9 @@ ...@@ -295,9 +295,9 @@
<input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled> <input id="ruang"type="url" class="form-control" placeholder="Url ruang&hellip;" disabled>
</div> </div>
</div> </div>
</div> -->
</div> </div>
</div> </div>
</div> -->
<div class="col-lg-12"> <div class="col-lg-12">
<h6 id='head'>Nilai Penguji</h6> <h6 id='head'>Nilai Penguji</h6>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<th>NIM</th> <th>NIM</th>
<th>Nama</th> <th>Nama</th>
<th>Pembimbing</th> <th>Pembimbing</th>
<th>Status Nilai Pembimbing</th> <!-- <th>Status Nilai Pembimbing</th> -->
<th>Penguji</th> <th>Penguji</th>
<th>Status Nilai Penguji</th> <th>Status Nilai Penguji</th>
<th>Action</th> <th>Action</th>
......
...@@ -258,6 +258,7 @@ ...@@ -258,6 +258,7 @@
<li><a href="<?php echo $this->basePath(); ?>/admin/usermahasiswa" onClick="">User Mahasiswa</a></li> <li><a href="<?php echo $this->basePath(); ?>/admin/usermahasiswa" onClick="">User Mahasiswa</a></li>
<li><a href="<?php echo $this->basePath(); ?>/admin/userdosen" onClick="">User Dosen</a></li> <li><a href="<?php echo $this->basePath(); ?>/admin/userdosen" onClick="">User Dosen</a></li>
<li><a href="<?php echo $this->basePath(); ?>/admin/userkaprodi" onClick="">User Kaprodi</a></li> <li><a href="<?php echo $this->basePath(); ?>/admin/userkaprodi" onClick="">User Kaprodi</a></li>
<li><a href="<?php echo $this->basePath(); ?>/admin/userkoordinator" onClick="">User Koordinator</a></li>
<li><a href="<?php echo $this->basePath(); ?>/admin/userakademik" onClick="">User Akademik</a></li> <li><a href="<?php echo $this->basePath(); ?>/admin/userakademik" onClick="">User Akademik</a></li>
</ul> </ul>
</li> </li>
......
...@@ -220,10 +220,10 @@ ...@@ -220,10 +220,10 @@
<!-- <li><a href="#" onClick="openTicketListdata()"><i class=" icon-ticket"></i> <span>Data Surat</span></a></li> --> <!-- <li><a href="#" onClick="openTicketListdata()"><i class=" icon-ticket"></i> <span>Data Surat</span></a></li> -->
<li id="home"><a href="<?php echo $this->basePath();?>/dosen/listmahasiswa" onClick=""><i class="icon-users2"></i> <span>Mahasiswa Bimbingan</span></a></li> <li id="home"><a href="<?php echo $this->basePath();?>/dosen/listmahasiswa" onClick=""><i class="icon-users2"></i> <span>Mahasiswa Bimbingan</span></a></li>
<li> <li>
<a href="#"><i class=" icon-clipboard6"></i> <span>Jadwal Persentasi</span></a> <a href="#"><i class=" icon-clipboard6"></i> <span>Nilai Persentasi</span></a>
<ul> <ul>
<li><a href="<?php echo $this->basePath();?>/dosen/penilaianpenguji">Jadwal Penguji</a></li> <li><a href="<?php echo $this->basePath();?>/dosen/penilaianpenguji">Nilai Penguji</a></li>
<li><a href="<?php echo $this->basePath();?>/dosen/penilaianpembimbing">Jadwal Pembimbing</a></li> <!-- <li><a href="<?php echo $this->basePath();?>/dosen/penilaianpembimbing">Nilai Pembimbing</a></li> -->
</ul> </ul>
</li> </li>
</ul> </ul>
......
This diff is collapsed.
...@@ -18,12 +18,17 @@ ...@@ -18,12 +18,17 @@
##RewriteRule ^(.*)$ %{ENV:BASE}/index.php [L] ##RewriteRule ^(.*)$ %{ENV:BASE}/index.php [L]
## ##
#SetEnv ITB_HOST 167.205.57.98
#SetEnv ITB_UNAME postgres
#SetEnv ITB_PASS postgres
#SetEnv ITB_PORT 5432
#SetEnv ITB_SCH ftmd_itb
SetEnv ITB_HOST 167.205.57.98 SetEnv ITB_HOST 167.205.57.98
SetEnv ITB_UNAME postgres SetEnv ITB_UNAME postgres
SetEnv ITB_PASS postgres SetEnv ITB_PASS postgres
SetEnv ITB_PORT 5432 SetEnv ITB_PORT 5432
SetEnv ITB_SCH ftmd_itb SetEnv ITB_SCH sipenkp_itb
#SetEnv ITB_HOST 103.126.28.66 #SetEnv ITB_HOST 103.126.28.66
#SetEnv ITB_UNAME postgres #SetEnv ITB_UNAME postgres
......
...@@ -213,11 +213,12 @@ function daterangeCheck(idateAW, idateAK){ ...@@ -213,11 +213,12 @@ function daterangeCheck(idateAW, idateAK){
return (idateAW - idateAK) < 0; return (idateAW - idateAK) < 0;
} }
loadElementspembimbing(); loadElementspembimbing(kodeprodi);
function loadElementspembimbing(clicksc){ function loadElementspembimbing(kodeprodi){
loaderPage(true) loaderPage(true)
let isObject = {}; let isObject = {};
isObject.ipoly = 1; isObject.ipoly = 1;
isObject.kodeprodi = kodeprodi
var dtpr = $('#list_pengajuan').DataTable({ var dtpr = $('#list_pengajuan').DataTable({
serverSide : true, serverSide : true,
......
...@@ -522,7 +522,7 @@ function loadMahasiswa(nim){ ...@@ -522,7 +522,7 @@ function loadMahasiswa(nim){
let result = cryptoDecrypt(PHRASE, response.data); let result = cryptoDecrypt(PHRASE, response.data);
// console.log(result.data); // console.log(result.data);
let data = result.data[0]; let data = result.data[0];
console.log(data) // console.log(data)
// let counter = 1; // let counter = 1;
let nama_prodi = data.nama_prodi; let nama_prodi = data.nama_prodi;
...@@ -531,6 +531,11 @@ function loadMahasiswa(nim){ ...@@ -531,6 +531,11 @@ function loadMahasiswa(nim){
$("#namaMhs").html(data.nim); $("#namaMhs").html(data.nim);
$("#laporanupd").val(data.judul_laporan); $("#laporanupd").val(data.judul_laporan);
// untuk select mhs utama
var opts = "<option value='"+data.nim+"'>"+data.nama+"</option>";
$("#nimselect").append(opts)
$("#isprodi").html(nama_prodi.toUpperCase())
var url = baseURL+'/data/profilepicture/'+data.file_foto; var url = baseURL+'/data/profilepicture/'+data.file_foto;
if(fileExists(url)){ if(fileExists(url)){
$(".improfmhs").attr('src', url); $(".improfmhs").attr('src', url);
......
...@@ -625,7 +625,7 @@ function savereset(aData){ ...@@ -625,7 +625,7 @@ function savereset(aData){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: baseURL + '/jsondata/resetpassworduser', url: baseURL + '/jsondata/resetpasswordusers',
data: { data: {
iparam : cryptoEncrypt(PHRASE, isObject), iparam : cryptoEncrypt(PHRASE, isObject),
}, },
......
...@@ -616,7 +616,7 @@ function savereset(aData){ ...@@ -616,7 +616,7 @@ function savereset(aData){
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: baseURL + '/jsondata/resetpassworduser', url: baseURL + '/jsondata/resetpasswordusers',
data: { data: {
iparam : cryptoEncrypt(PHRASE, isObject), iparam : cryptoEncrypt(PHRASE, isObject),
}, },
......
...@@ -388,12 +388,12 @@ function savereset(aData){ ...@@ -388,12 +388,12 @@ function savereset(aData){
let isObject = {}; let isObject = {};
isObject.iduser = aData.iduser; isObject.iduser = aData.iduser;
isObject.nim = 'kaprodi'+nama_prodi; isObject.nim = aData.username;
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: baseURL + '/jsondata/resetpassworduser', url: baseURL + '/jsondata/resetpasswordusers',
data: { data: {
iparam : cryptoEncrypt(PHRASE, isObject), iparam : cryptoEncrypt(PHRASE, isObject),
}, },
......
This diff is collapsed.
...@@ -66,11 +66,12 @@ function insertnilai(obj){ ...@@ -66,11 +66,12 @@ function insertnilai(obj){
confirmButtonColor: "#66BB6A", confirmButtonColor: "#66BB6A",
type: "success" type: "success"
}, function(){ }, function(){
if(isObject.identitas == 'penguji'){
window.location = baseURL + "/dosen/penilaianpenguji" window.location = baseURL + "/dosen/penilaianpenguji"
}else { // if(isObject.identitas == 'penguji'){
window.location = baseURL + "/dosen/penilaianpembimbing" // window.location = baseURL + "/dosen/penilaianpenguji"
} // }else {
// window.location = baseURL + "/dosen/penilaianpembimbing"
// }
}); });
...@@ -290,9 +291,10 @@ function loaddatakp(nim){ ...@@ -290,9 +291,10 @@ function loaddatakp(nim){
$("#img-mhsw").attr('src', baseURL+"/data/profilepicture/defaultpics.png"); $("#img-mhsw").attr('src', baseURL+"/data/profilepicture/defaultpics.png");
} }
if(asdingding(datas.tanggal, datas.jam) > 0){ //disabling submit button
$(".subnilai").attr('disabled', true) // if(asdingding(datas.tanggal, datas.jam) > 0){
} // $(".subnilai").attr('disabled', true)
// }
if(identitas == 'pembimbing'){ if(identitas == 'pembimbing'){
$("#id_identitas").val(datas.no_peg); $("#id_identitas").val(datas.no_peg);
......
loadElementsMhs() // alert("dosono gan")
function loadElementsMhs(clicksc){ loadElementsMhs(kodeprodi)
function loadElementsMhs(kodeprodi){
loaderPage(true) loaderPage(true)
let isObject = {}; let isObject = {};
isObject.ipoly = 1; isObject.ipoly = 1;
isObject.kodeprodi = kodeprodi
var dtpr = $('#buatjadwal').DataTable({ var dtpr = $('#buatjadwal').DataTable({
serverSide : true, serverSide : true,
......
This diff is collapsed.
...@@ -685,7 +685,7 @@ function updateFileMhss(){ ...@@ -685,7 +685,7 @@ function updateFileMhss(){
let nimMhs = $("#nim").val(); let nimMhs = $("#nim").val();
let idberkas = $("#idberkas").val(); let idberkas = $("#idberkas").val();
let roles = role;
// console.log(fileupload1); // console.log(fileupload1);
// console.log(fileupload2); // console.log(fileupload2);
// console.log(fileupload3); // console.log(fileupload3);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
$port = getenv('ITB_PORT'); $port = getenv('ITB_PORT');
$connection = pg_connect ("host='$host' dbname='$dbname' options='-c search_path=sde,public' user='$username' password='$password' port='$port'"); $connection = pg_connect ("host='$host' dbname='$dbname' options='-c search_path=sde,public' user='$username' password='$password' port='$port'");
// print_r($dbname);die;
if($connection) { if($connection) {
echo 'connected'; echo 'connected';
} else { } else {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment