Beispiel #1
0
 public function performTest($testName)
 {
     $testUri = testCase::BASE_SERVICE . $testName . '.' . testCase::RESPONSE_FORMAT;
     echo_line('<pre>');
     echo_line("Request:");
     echo_line("\t" . $testUri);
     echo_line("\nResponse:\n");
     $response = send_request($testUri, 'GET');
     $coder = new CJSON();
     $object = $coder->decode($response);
     print_as_json('', $object);
     echo_line('</pre>');
 }
 </td>
                                        <td>
                                            <input class="form-control" placeholder="<?php 
echo_line('input_company_holiday_date_detail');
?>
" name="holiday_th" id="holiday_th" value="{holiday_th}" type="text" required="" autofocus=""></td>
                                    </tr>

                                    <tr class="odd gradeA">
                                        <td colspan="2" align="center">
                                            <button type="submit" class="btn btn-success"><?php 
echo_line('action_save');
?>
</button>
                                            <button type="reset" class="btn btn-warning"><?php 
echo_line('action_cancel');
?>
</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
Beispiel #3
0
<?php

/*!
 * qwp: https://github.com/steem/qwp
 *
 * Copyright (c) 2015 Steem
 * Released under the MIT license
 */
define('QWP_TOOLS_ROOT', dirname(__FILE__));
define('QWP_ROOT', QWP_TOOLS_ROOT . '/..');
require_once QWP_ROOT . '/include/common.php';
if (count($argv) > 1) {
    $object = $argv[1];
    $template = file_get_contents(join_paths(QWP_ROOT, 'modules', 'users', 'home.js.php'));
    $template = str_replace('user', $object, $template);
    $template = str_replace('User', camel_case($object), $template);
    file_put_contents(join_paths(QWP_TOOLS_ROOT, $object . '.js.php'), $template);
} else {
    echo_line('please specify the object name, eg. user');
}
<?php

defined('BASEPATH') or exit('No direct script access allowed');
?>

<br><br>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-info">
            <div class="panel-heading">
                <i class="fa  fa-search" id="color_main_icon"></i> <b><?php 
echo_line('action_insert');
echo_line('company_holiday_date');
?>
</b>
            </div>
            <div class="panel-body">
                <?php 
if ($save_success == 'success') {
    ?>
                    <div class="alert alert-success  col-lg-6">
                        การบันทึกข้อมูลสำเร็จแล้ว
                    </div>
                    <div style="clear: both"></div>
                <?php 
}
?>
                <div class="row">
                    <div class="col-lg-6">

                        <div class="table-responsive">
 </td>
                                        <td>
                                            <input class="form-control" placeholder="กรอก<?php 
echo_line('barriers');
?>
" name="barriers" id="barriers" value="{barriers}" type="text" required="" autofocus=""></td>
                                    </tr>

                                    <tr class="odd gradeA">
                                        <td align="center"> <?php 
echo_line('solutions');
?>
  </td>
                                        <td>
                                            <input class="form-control" placeholder="กรอก <?php 
echo_line('solutions');
?>
" name="solutions" id="solutions" value="{solutions}" type="text" required="" autofocus=""></td>
                                    </tr>
                                    
                                    
                                         <tr class="odd gradeA">
                                        <td align="center"> ผู้บัจทึก </td>
                                        <td>
<!--                                             <input class="form-control" placeholder="กรอกemp_id" name="emp_id" id="emp_id" value="{emp_id}" type="text" required="" autofocus=""></td> -->
                                        {emp_id}
                                    </tr>

<!--                                     <tr class="odd gradeA"> -->
<!--                                         <td colspan="2" align="center"> -->
<!--                                             <button type="submit" class="btn btn-success">บันทึก</button> -->
?>

<div style="clear: both"></div>
<br>
<div style="clear: both"></div>
<div class="row text-center center-block">
    <div class="col-lg-6  " style="display:inline-block;float:none;">
        <div class="panel panel-red">
            <div class="panel-heading">
                <?php 
echo_line("sys_error");
?>
            </div>
            <div class="panel-body">
                <p>
                    <?php 
echo_line($error_message);
?>
                </p>
            </div>
            <div class="panel-footer">
                <button type="button" class="btn btn-outline btn-success" onclick="window.location.href = '<?php 
echo $url_back;
?>
'">ตกลง</button>
            </div>
        </div>
        <!-- /.col-lg-4 -->
    </div>
</div>
<!-- /.row -->
                    <li>
                        <a href="<?php 
echo admin_ms_site('urllist');
?>
"> <?php 
echo_line('menu_roleurl');
?>
 </a>
                    <li>

                    <li>
                        <a href="<?php 
echo admin_tr_site('user');
?>
"> <?php 
echo_line('menu_user');
?>
 </a>
                    <li>

                </ul>
            </li>


            <!--            <li>
                            <a href="#"><i class="fa fa-sitemap fa-fw"></i> Multi-Level Dropdown<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="#">Second Level Item</a>
                                </li>
                                <li>
<?php

defined('BASEPATH') or exit('No direct script access allowed');
?>

<div style="clear: both"></div>
<br>
<div style="clear: both"></div>
<!-- /.row -->
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-info">
            <div class="panel-heading">
                <i class="fa fa-edit" id="color_main_icon"></i> <b> <?php 
echo_line($action);
?>
timesheet_form </b>
            </div>
            <div class="panel-body">
                <?php 
if (isset($error_msg)) {
    ?>
                    <div class="alert alert-danger">
                        <?php 
    echo $error_msg;
    ?>
                    </div>
                <?php 
}
?>
                <div class="row">
?>
                                                </th>
                                                <td>
                                                    {country2}
                                                </td>
                                                <th>
                                                    <?php 
echo_line('latitude');
?>
                                                </th>
                                                <td>
                                                    {latitude2}
                                                </td>
                                                <th>
                                                    <?php 
echo_line('longtitude');
?>
                                                </th>
                                                <td>
                                                    {logitude2}
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>

                                    </div>

                                    <div align="center" id="smile" style="display: none;"> <br><br><i class="fa fa-smile-o fa-5x"></i> <br><br><b>ไม่มีข้อมูลอยู่ในระบบ</b></div><br><br>
                                </div>
                            </div>
                            <a href="<?php 
if (isset($weather_id)) {
    ?>
                                <input type="hidden" id="weather_id" name="weather_id" value="<?php 
    echo num_param_url_encode($weather_id);
    ?>
">
                            <?php 
}
?>
  

                            <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <tbody>
                                    <tr class="odd gradeA">
                                        <td align="center"> <?php 
echo_line('weather_name');
?>
 </td>
                                        <td>
                                            <input class="form-control" placeholder="กรอกสภาพอากาศ" name="weather_name" id="weather_name" value="{weather_name}" type="text" required="" autofocus=""></td>
                                    </tr>

                                    <tr class="odd gradeA">
                                        <td colspan="2" align="center">
                                            <button type="submit" class="btn btn-success">บันทึก</button>
                                            <button type="reset" class="btn btn-warning">ยกเลิก</button>
                                              <a href="<?php 
echo admin_ms_site('weather/');
?>
">
                                                <button type="button" class="btn btn-primary"> กลับ </button>
    echo admin_tr_site('employee/modify_form/' . num_param_url_encode($employee->emp_id));
    ?>
">
                                                <button type="button" class="btn btn-primary">
                                                    <?php 
    echo_line('button_update');
    ?>
                                                </button>
                                            </a>

                                            <button id="<?php 
    echo num_param_url_encode($employee->emp_id);
    ?>
" type="button" class="btn btn-danger del-data" data-toggle="modal" data-target="#myModal">
                                                <?php 
    echo_line('button_delete');
    ?>
                                            </button>
                                        </div>
                                    </td>
                                </tr>
                            <?php 
}
?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
<script type="text/javascript">

<?php 
// header timesheet
?>
var emp_code = "<?php 
echo_line('emp_code');
?>
";
var fname_th = "<?php 
echo_line('fname_th');
?>
";
var lname_th = "<?php 
echo_line('lname_th');
?>
";
var counter = 0;
	
function loadEmployeeProgress(){
	if($("#B").html() == ""){
		$.post('<?php 
echo admin_tr_site('timesheet/find_by_progress_daily_report');
?>
'
				,{project_id:$("#project_id").val(),start_date:$("#progress_date").val()}
				,function(result)
		{
			var div = $("#B");
			div.html(result);
?>

<div style="clear: both"></div>
<br>
<div style="clear: both"></div>
<div class="row text-center center-block">
    <div class="col-lg-6  " style="display:inline-block;float:none;">
        <div class="panel panel-green">
            <div class="panel-heading">
                <?php 
echo_line("sys_success");
?>
            </div>
            <div class="panel-body">
                <p>
                    <?php 
echo_line($succes_message);
?>
                </p>
            </div>
            <div class="panel-footer">
                <button type="button" class="btn btn-outline btn-success" onclick="window.location.href = '<?php 
echo $url_back;
?>
'">ตกลง</button>
            </div>
        </div>
        <!-- /.col-lg-4 -->
    </div>
</div>
<!-- /.row -->
 </th>
                                <th> <?php 
echo_line('address_project');
?>
</th>
<!--                                 <th> เบอร์โทรศัพท์โครงการ </th> -->
                                <th> <?php 
echo_line('start_date');
?>
 </th>
                                <th> <?php 
echo_line('end_date');
?>
 </th>
                                <th> <?php 
echo_line('project_detail');
?>
</th>
                                
                                <th class=""> </th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php 
foreach ($project_list as $key => $project) {
    ?>
                                <tr class="odd gradeX">
                                    <td> <?php 
    echo $key + 1;
    ?>
 </td>
Beispiel #15
0
function is_phpdoc_checkout($configs)
{
    if (empty($configs['DIR_SVN'])) {
        echo_line('Warning:  Configuration is not set properly while testing the checkout. Massive fail!');
        exit;
    }
    // TODO: Improve this check
    if (file_exists($configs['DIR_SVN'] . '/en/reference/apc/book.xml') && file_exists($configs['DIR_SVN'] . '/doc-base/configure.php')) {
        return true;
    } else {
        return false;
    }
}
">
                            <?php 
}
?>
  

                            <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <tbody>
                                    <tr class="odd gradeA">
                                        <td align="center"> <?php 
echo_line('type_progress_name');
?>
</td>
                                        <td>
                                            <input class="form-control" placeholder="กรอก<?php 
echo_line('type_progress_name');
?>
" name="progress_name" id="progress_name" value="{progress_name}" type="text" required="" autofocus=""></td>
                                    </tr>

                                    <tr class="odd gradeA">
                                        <td colspan="2" align="center">
                                            <button type="submit" class="btn btn-success">บันทึก</button>
                                            <button type="reset" class="btn btn-warning">ยกเลิก</button>
                                               <a href="<?php 
echo admin_ms_site('typeprogress/');
?>
">
                                                <button type="button" class="btn btn-primary"> กลับ </button>
                                            </a>
                                        </td>
                                            <input class="form-control" placeholder="กรอก<?php 
echo_line('latitude');
?>
" name="latitude" id="latitude" value="{latitude}" type="text" required="" autofocus="">
                                            </td>
                                    </tr>

                                   
                                    <tr class="odd gradeA">
                                        <td align="center"> <?php 
echo_line('logitude');
?>
 </td>
                                        <td>
                                            <input class="form-control" placeholder="กรอก<?php 
echo_line('logitude');
?>
" name="logitude" id="logitude" value="{logitude}" type="text" required="" autofocus="">
                                            </td>
                                    </tr>
                                    

                                    <tr class="odd gradeA">
                                        <td colspan="2" align="center">
                                            <button type="submit" class="btn btn-success">บันทึก</button>
                                            <button type="reset" class="btn btn-warning">ยกเลิก</button>
                                             <a href="<?php 
echo admin_ms_site('project/');
?>
">
                                                <button type="button" class="btn btn-primary"> กลับ </button>
<?php

defined('BASEPATH') or exit('No direct script access allowed');
?>

<br>
<div class="right">
    <a href="<?php 
echo admin_tr_site('employeeinproject/create_form/');
?>
">
        <button type="button" class="btn btn-success btn-lg right" > 
            <i class="fa  fa-plus" id="color_main_icon"></i> <b><?php 
echo_line('action_insert');
?>
employeeinproject </b>
        </button>
    </a>
</div>
<br>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-info">
            <div class="panel-heading">
                <i class="fa fa-th-list" id="color_main_icon"></i> <b>employeeinproject </b>
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="dataTable_wrapper">

                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                                    </td> <?php 
?>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                </div>
                            </div>
                            <div align="center">
                                <button type="submit" class="btn btn-success"> <?php 
echo_line('button_insert');
?>
 </button>
                                <button type="reset" class="btn btn-warning"> <?php 
echo_line('button_cancel');
?>
 </button>
                            </div>
                        </form>

                    </div>
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>