当前位置: 首页>>代码示例>>PHP>>正文


PHP get_validate_chart_js函数代码示例

本文整理汇总了PHP中get_validate_chart_js函数的典型用法代码示例。如果您正苦于以下问题:PHP get_validate_chart_js函数的具体用法?PHP get_validate_chart_js怎么用?PHP get_validate_chart_js使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_validate_chart_js函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: draw


//.........这里部分代码省略.........
<?php 
        $cal_lang = "en";
        $cal_dateformat = parse_calendardate($app_strings['NTC_DATE_FORMAT']);
        if (empty($_SESSION['obm_ids'])) {
            $_SESSION['obm_ids'] = "";
        }
        ?>
<p>
<div id='outcome_by_month_edit' style='display: none;'>
<form name="outcome_by_month" 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="obm_refresh" value="true">
<input type="hidden" name="obm_date_start" value="<?php 
        if (isset($_SESSION['obm_date_start'])) {
            echo $_SESSION['obm_date_start'];
        }
        ?>
">
<input type="hidden" name="obm_date_end" value="<?php 
        if (isset($_SESSION['obm_date_end'])) {
            echo $_SESSION['obm_date_end'];
        }
        ?>
">
<table cellpadding="0" cellspacing="0" border="0" class="edit view" align="center">
<tr>
	<td valign='top' nowrap ><b><?php 
        echo $current_module_strings['LBL_YEAR'];
        ?>
</b><br><span class="dateFormat"><?php 
        echo $app_strings['NTC_YEAR_FORMAT'];
        ?>
</span></td>
	<td valign='top' ><input class="text" name="obm_year" size='12' maxlength='10' id='obm_year'  value='<?php 
        if (isset($date_start)) {
            echo substr($date_start, 0, 4);
        }
        ?>
'>&nbsp;&nbsp;</td>
	<td valign='top'><b><?php 
        echo $current_module_strings['LBL_USERS'];
        ?>
</b></td>
	<td valign='top'><select name="obm_ids[]" multiple size='3'><?php 
        echo get_select_options_with_id(get_user_array(false), $ids);
        ?>
</select></td>
	<td align="right" valign="top"><input class="button" onclick="return verify_chart_data_outcome_by_month();" type="submit" title="<?php 
        echo $app_strings['LBL_SELECT_BUTTON_TITLE'];
        ?>
" value="<?php 
        echo $app_strings['LBL_SELECT_BUTTON_LABEL'];
        ?>
" /><input class="button" onClick="javascript: toggleDisplay('outcome_by_month_edit');" type="button" title="<?php 
        echo $app_strings['LBL_CANCEL_BUTTON_TITLE'];
        ?>
" accessKey="<?php 
        echo $app_strings['LBL_CANCEL_BUTTON_KEY'];
        ?>
" value="<?php 
        echo $app_strings['LBL_CANCEL_BUTTON_LABEL'];
        ?>
"/></td>
</tr>
</table>
</form>

</div>
</p>
<?php 
        // draw chart
        echo "<p align='center'>" . $this->gen_xml($date_start, $date_end, $ids, $cache_file_name, $refresh, $current_module_strings) . "</p>";
        echo "<P align='center'><span class='chartFootnote'>" . $current_module_strings['LBL_MONTH_BY_OUTCOME_DESC'] . "</span></P>";
        ?>


<?php 
        if (file_exists($cache_file_name)) {
            $file_date = $timedate->asUser($timedate->fromTimestamp(filemtime($cache_file_name)));
        } else {
            $file_date = '';
        }
        ?>

<span class='chartFootnote'>
<p align="right"><i><?php 
        echo $current_module_strings['LBL_CREATED_ON'] . ' ' . $file_date;
        ?>
</i></p>
</span>
<?php 
        echo get_validate_chart_js();
    }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:101,代码来源:Chart_outcome_by_month.php

示例2: draw


//.........这里部分代码省略.........
        ?>
 </td>
</tr>
<tr>
	<td valign='top' nowrap><b><?php 
        echo $current_module_strings['LBL_DATE_END'];
        ?>
</b><br><span class="dateFormat"><?php 
        echo "(" . $timedate->get_user_date_format() . ")";
        ?>
</span></td>
	<td valign='top' ><input class="text" name="pbss_date_end" size='12' maxlength='10' id='date_end' value='<?php 
        if (isset($date_end)) {
            echo $date_end;
        }
        ?>
'>  <?php 
        echo SugarThemeRegistry::current()->getImage('jscalendar', 'id="date_end_trigger" align="absmiddle"', null, null, ".gif", $app_strings['LBL_ENTER_DATE']);
        ?>
 </td>
</tr>
<tr>
	<td valign='top' nowrap><b><?php 
        echo $current_module_strings['LBL_SALES_STAGES'];
        ?>
</b></td>
	<td valign='top' ><select name="pbss_sales_stages[]" multiple size='3'><?php 
        echo get_select_options_with_id($app_list_strings['sales_stage_dom'], $datax_selected);
        ?>
</select></td>
</tr>
<tr>
	<td valign='top' nowrap><b><?php 
        echo $current_module_strings['LBL_USERS'];
        ?>
</b></td>
	<td valign='top' ><select name="pbss_ids[]" multiple size='3'><?php 
        echo get_select_options_with_id(get_user_array(false), $ids);
        ?>
</select></td>
</tr>
<tr>
<?php 
        global $app_strings;
        ?>
	<td align="right" colspan="2"><input class="button" onclick="return verify_chart_data(pipeline_by_sales_stage);" type="submit" title="<?php 
        echo $app_strings['LBL_SELECT_BUTTON_TITLE'];
        ?>
" value="<?php 
        echo $app_strings['LBL_SELECT_BUTTON_LABEL'];
        ?>
" /><input class="button" onClick="javascript: toggleDisplay('pipeline_by_sales_stage_edit');" type="button" title="<?php 
        echo $app_strings['LBL_CANCEL_BUTTON_TITLE'];
        ?>
" accessKey="<?php 
        echo $app_strings['LBL_CANCEL_BUTTON_KEY'];
        ?>
" value="<?php 
        echo $app_strings['LBL_CANCEL_BUTTON_LABEL'];
        ?>
"/></td>
</tr>
</table>
</form>
<script type="text/javascript">
Calendar.setup ({
	inputField : "date_start", ifFormat : "<?php 
        echo $cal_dateformat;
        ?>
", showsTime : false, button : "date_start_trigger", singleClick : true, step : 1, weekNumbers:false
});
Calendar.setup ({
	inputField : "date_end", ifFormat : "<?php 
        echo $cal_dateformat;
        ?>
", showsTime : false, button : "date_end_trigger", singleClick : true, step : 1, weekNumbers:false
});
</script>
</div>
</p>
	<?php 
        // draw table
        echo "<P align='center'>" . $this->gen_xml($datax, $dateXml[0], $dateXml[1], $ids, $cache_file_name, $refresh, 'hBarF', $current_module_strings) . "</P>";
        echo "<P align='center'><span class='chartFootnote'>" . $current_module_strings['LBL_SALES_STAGE_FORM_DESC'] . "</span></P>";
        if (file_exists($cache_file_name)) {
            $file_date = $timedate->asUser($timedate->fromTimestamp(filemtime($cache_file_name)));
        } else {
            $file_date = '';
        }
        ?>

<span class='chartFootnote'>
<p align="right"><i><?php 
        echo $current_module_strings['LBL_CREATED_ON'] . ' ' . $file_date;
        ?>
</i></p>
</span>
<?php 
        echo get_validate_chart_js();
    }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:101,代码来源:Chart_pipeline_by_sales_stage.php

示例3: get_validate_chart_js

echo "<P align='center'><span class='chartFootnote'>" . $current_module_strings['LBL_PIPELINE_FORM_TITLE_DESC'] . "</span></P>";
if (file_exists($cache_file_name)) {
    $file_date = $timedate->asUser($timedate->fromTimestamp(filemtime($cache_file_name)));
} else {
    $file_date = '';
}
?>
<span class='chartFootnote'>
<p align="right"><i><?php 
echo $current_module_strings['LBL_CREATED_ON'] . ' ' . $file_date;
?>
</i></p>
</span>

<?php 
echo get_validate_chart_js();
/**
 * Creates opportunity pipeline image as a HORIZONTAL accumlated BAR GRAPH for multiple users.
 * param $datax- the sales stage data to display in the x-axis
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
 * All Rights Reserved..
 * Contributor(s): ______________________________________..
 */
function gen_xml_pipeline_by_sales_stage($datax = array('foo', 'bar'), $date_start = '2071-10-15', $date_end = '2071-10-15', $user_id = array('1'), $cache_file_name = 'a_file', $refresh = false, $chart_size = 'hBarF', $current_module_strings)
{
    global $app_strings, $charset, $lang, $barChartColors, $current_user;
    $kDelim = $current_user->getPreference('num_grp_sep');
    global $timedate;
    if (!file_exists($cache_file_name) || $refresh == true) {
        $GLOBALS['log']->debug("starting pipeline chart");
        $GLOBALS['log']->debug("datax is:");
开发者ID:NALSS,项目名称:SuiteCRM,代码行数:31,代码来源:Chart_my_pipeline_by_sales_stage.php

示例4: display

 function display()
 {
     global $app_list_strings, $current_language, $sugar_config, $currentModule, $action, $current_user, $theme, $timedate, $image_path;
     $this->loadLanguage('MyPipelineBySalesStageDashlet', 'modules/Charts/Dashlets/');
     $returnStr = '';
     $user_dateFormat = $timedate->get_date_format();
     $current_module_strings = return_module_language($current_language, 'Charts');
     if (isset($_REQUEST['mypbss_refresh'])) {
         $refresh = $_REQUEST['mypbss_refresh'];
     } else {
         $refresh = false;
     }
     $date_start = $this->mypbss_date_start;
     $date_end = $this->mypbss_date_end;
     // cn: format date_start|end to user's preferred
     $dateStartDisplay = strftime($timedate->get_user_date_format(), strtotime($date_start));
     $dateEndDisplay = strftime($timedate->get_user_date_format(), strtotime($date_end));
     $seps = array("-", "/");
     $dates = array($date_start, $date_end);
     $dateFileNameSafe = str_replace($seps, "_", $dates);
     $dateXml[0] = $timedate->swap_formats($date_start, $user_dateFormat, $timedate->dbDayFormat);
     $dateXml[1] = $timedate->swap_formats($date_end, $user_dateFormat, $timedate->dbDayFormat);
     $datax = array();
     $selected_datax = array();
     //get list of sales stage keys to display
     $user_sales_stage = $this->mypbss_sales_stages;
     $tempx = $user_sales_stage;
     //set $datax using selected sales stage keys
     if (count($tempx) > 0) {
         foreach ($tempx as $key) {
             $datax[$key] = $app_list_strings['sales_stage_dom'][$key];
             array_push($selected_datax, $key);
         }
     } else {
         $datax = $app_list_strings['sales_stage_dom'];
         $selected_datax = array_keys($app_list_strings['sales_stage_dom']);
     }
     $GLOBALS['log']->debug("datax is:");
     $GLOBALS['log']->debug($datax);
     $ids = array($current_user->id);
     //create unique prefix based on selected users for image files
     $id_hash = '1';
     if (isset($ids)) {
         sort($ids);
         $id_hash = crc32(implode('', $ids));
         if ($id_hash < 0) {
             $id_hash = $id_hash * -1;
         }
     }
     $GLOBALS['log']->debug("ids is:");
     $GLOBALS['log']->debug($ids);
     $id_md5 = substr(md5($current_user->id), 0, 9);
     $seps = array("-", "/");
     $dates = array($dateStartDisplay, $dateEndDisplay);
     $dateFileNameSafe = str_replace($seps, "_", $dates);
     $cache_file_name = $current_user->getUserPrivGuid() . "_" . $theme . "_my_pipeline_" . $dateFileNameSafe[0] . "_" . $dateFileNameSafe[1] . ".xml";
     $GLOBALS['log']->debug("cache file name is: {$cache_file_name}");
     //        echo get_form_header($mod_strings['LBL_PIPELINE_FORM_TITLE'], $tools , false);
     $returnStr .= "<p align='center'>" . $this->gen_xml_pipeline_by_sales_stage($datax, $dateXml[0], $dateXml[1], $ids, $sugar_config['tmp_dir'] . $cache_file_name, $refresh, 'hBarS', $current_module_strings) . "</p>";
     $returnStr .= "<P align='center'><span class='chartFootnote'>" . $current_module_strings['LBL_PIPELINE_FORM_TITLE_DESC'] . "</span></P>";
     if (file_exists($sugar_config['tmp_dir'] . $cache_file_name)) {
         $file_date = date($timedate->get_date_format() . " " . $timedate->get_time_format(), filemtime($sugar_config['tmp_dir'] . $cache_file_name));
     } else {
         $file_date = '';
     }
     $returnStr .= "<span class='chartFootnote'>\n            <p align='right'><i>{$current_module_strings['LBL_CREATED_ON']} {$file_date}</i></p>\n            </span>";
     $returnStr .= get_validate_chart_js();
     return parent::display('<div align="center"><a href="#" onclick="SUGAR.sugarHome.retrieveDashlet(\'' . $this->id . '\', \'index.php?action=DisplayDashlet&module=Home&to_pdf=1&mypbss_refresh=true&id=' . $this->id . '\'); return false"; class="chartToolsLink">' . $this->dashletStrings['LBL_REFRESH'] . '</a></div>') . $returnStr;
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:69,代码来源:MyPipelineBySalesStageDashlet.php


注:本文中的get_validate_chart_js函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。