Exemplo n.º 1
0
<?php

include_once "../../includes/basics/header.inc";
?>
<div id="json_save_header"> <div class="json_message"><?php 
json_save('extension', 'content', 'subject', 'content_id');
?>
</div></div>
<div id="json_delete_header"><div class="json_message">
  <?php 
if (!empty($_GET['delete']) && $_GET['delete'] == 1) {
    $content_id = $_GET['header_id'];
    $result = content::delete($content_id);
    if ($result == 1) {
        echo 'Comment is deleted!';
    } else {
        return false;
    }
}
?>
 </div></div>

<div id="json_drop_column">
 <?php 
if (!empty($_GET['delete']) && $_GET['delete'] == 1) {
    $content_name = $_GET['content_name'];
    $field_name = $_GET['field_name'];
    $result = content::drop_column($content_name, $field_name);
    if ($result == 1) {
        echo 'Comment is deleted!';
    } else {
<?php

include_once "../../../include/basics/header.inc";
?>
<script src="bom_material_element.js"></script>

<div id="json_save_header"> <?php 
json_save('bom', 'bom_material_element', 'material_element', 'bom_material_element_id');
?>
</div>
<div id="json_delete_line"> <?php 
json_delete('bom_material_element');
?>
 </div>
<div id="json_bom_material_element_find_all">
  <?php 
if (!empty($_GET['org_id']) && ($_GET['find_all_bom_material_element'] = 1)) {
    $org_id = $_GET['org_id'];
    $bom_material_element_of_org = bom_material_element::find_all_of_org_id($org_id);
    if (count($bom_material_element_of_org) == 0) {
        return false;
    } else {
        foreach ($bom_material_element_of_org as $key => $value) {
            echo '<option value="' . $value->bom_material_element_id . '"';
            echo '>' . $value->bom_material_element . '</option>';
        }
    }
}
?>

</div>
Exemplo n.º 3
0
<?php

include_once "../../../include/basics/header.inc";
?>
<script src="option.js"></script>

<div id="json_delete_line"> <?php 
json_delete('sys_value_group_line', 'sys_value_group_line_id');
?>
 </div>
<div id="json_save_header"> <?php 
json_save('sys', 'sys_value_group_header', 'value_group', 'sys_value_group_header_id');
?>
</div>
<div id="json_save_line"><?php 
json_saveLineData('sys', 'sys_value_group_line', 'code', 'sys_value_group_line_id');
?>
</div>

<?php 
include_template('footer.inc');
Exemplo n.º 4
0
    // Merge 'bin' section
    if (isset($config['bin'])) {
        foreach ($config['bin'] as $file) {
            $bins[] = "subsystems/{$package}/{$file}";
        }
    }
}
ksort($requires);
ksort($psr4s);
ksort($bins);
// do not sort files.
$targetConfig['require'] = array_merge($targetConfig['require'], $requires);
$targetConfig['autoload']['psr-4'] = array_merge($targetConfig['autoload']['psr-4'], $psr4s);
$targetConfig['autoload']['files'] = array_merge($targetConfig['autoload']['files'], $files);
$targetConfig['bin'] = array_merge($targetConfig['bin'], $bins);
json_save('composer.json', $targetConfig);
echo "composer.json has been updated\n";
exit;
function fail($msg)
{
    echo "{$msg}\n";
    exit(1);
}
function dirList($path, $type = 0, $fullPaths = false, $sortOrder = false)
{
    if (!file_exists($path)) {
        return false;
    }
    $d = new DirectoryIterator($path);
    $o = [];
    foreach ($d as $file) {
Exemplo n.º 5
0
<?php

include_once "../../../include/basics/header.inc";
?>
<script src="bom_overhead.js"></script>

<div id="json_save_header"> <?php 
json_save('bom', 'bom_overhead', 'overhead', 'bom_overhead_id');
?>
</div>
<div id="json_save_line"><?php 
json_saveLineData('bom', 'bom_overhead_resource_assignment', 'resource_id', 'bom_overhead_resource_assignment_id');
?>
</div>
<div id="json_save_line2"><?php 
json_saveLineData2('bom', 'bom_overhead_rate_assignment', 'department_id', 'bom_overhead_rate_assignment_id');
?>
</div>
<div id="json_delete_line"> <?php 
json_delete('bom_overhead');
?>
 </div>
<div id="json_bom_overhead_find_all">
  <?php 
if (!empty($_GET['org_id']) && ($_GET['find_all_bom_overhead'] = 1)) {
    $org_id = $_GET['org_id'];
    $bom_overhead_of_org = bom_overhead::find_all_of_org_id($org_id);
    if (count($bom_overhead_of_org) == 0) {
        return false;
    } else {
        foreach ($bom_overhead_of_org as $key => $value) {
<?php

include_once "../../../include/basics/header.inc";
?>
<script src="bom_standard_operation.js"></script>

<div id="json_save_header"> <?php 
json_save('bom', 'bom_standard_operation', 'standard_operation', 'bom_standard_operation_id');
?>
</div>
<div id="json_save_line"><?php 
json_saveLineData('bom', 'bom_standard_operation_resource_assignment', 'resource_sequence', 'bom_standard_operation_resource_assignment_id');
?>
</div>
<div id="json_delete_line"> <?php 
json_delete('bom_standard_operation');
?>
 </div>
<div id="json_bom_standard_operation_find_all">
  <?php 
if (!empty($_GET['org_id']) && ($_GET['find_all_bom_standard_operation'] = 1)) {
    $org_id = $_GET['org_id'];
    $bom_standard_operation_of_org = bom_standard_operation::find_all_of_org_id($org_id);
    if (count($bom_standard_operation_of_org) == 0) {
        return false;
    } else {
        foreach ($bom_standard_operation_of_org as $key => $value) {
            echo '<option value="' . $value->bom_standard_operation_id . '"';
            echo '>' . $value->bom_standard_operation . '</option>';
        }
    }