コード例 #1
0
    sort($ids);
    $id_hash = crc32(implode('', $ids));
}
$log->debug("ids is:");
$log->debug($ids);
$cache_file_name = $id_hash . "_pipeline_by_lead_source_" . $current_language . "_" . crc32(implode('', $datax)) . ".png";
$log->debug("cache file name is: {$cache_file_name}");
if (isPermitted('Potentials', 'index') == "yes") {
    $draw_this = new jpgraph();
    $width = 850;
    $height = 500;
    if (isset($_REQUEST['display_view']) && $_REQUEST['display_view'] == 'MATRIX') {
        $width = 350;
        $height = 250;
    }
    echo $draw_this->pipeline_by_lead_source($datax, $ids, $tmp_dir . $cache_file_name, $refresh, $width, $height);
    echo "<P><font size='1'><em>" . $current_module_strings['LBL_LEAD_SOURCE_FORM_DESC'] . "</em></font></P>";
    if (isset($_REQUEST['pbls_edit']) && $_REQUEST['pbls_edit'] == 'true') {
        ?>
<form action="index.php" method="post" >
<input type="hidden" name="module" value="<?php 
        echo $currentModule;
        ?>
">
<input type="hidden" name="action" value="<?php 
        echo $action;
        ?>
">
<input type="hidden" name="display_view" value="<?php 
        echo vtlib_purify($_REQUEST['display_view']);
        ?>