随笔分类 -  SugarCRM

摘要:在$_REQUEST['where'] = $where;$storeQuery->process_views($currentModule);上面加入以下代码,下面的代码指默认为查询本月if($where==''){$date_period ='thismonth';$date_from = get_date_from($date_period);$date_to = get_date_to($date_period);if(isset($date_from) && $date_from != "") 阅读全文
posted @ 2011-03-29 13:19 海乐学习 阅读(543) 评论(0) 推荐(0) 编辑
摘要:在模块目录下的ListView.php中// Advanced Search Form Processing (START)此句代码下面,加入$_REQUEST['advanced']="true";//只显示高级查询 阅读全文
posted @ 2011-03-29 11:19 海乐学习 阅读(314) 评论(0) 推荐(0) 编辑
摘要:在此文件中\include\ListView\ListView.php将$export_link ="<a target=\"_blank\" href=\"export.php?module=".$export_module."\" class=\"listViewPaginationLinkS1\">".get_image($image_path."export","alt='".$this->local_app_string 阅读全文
posted @ 2011-03-29 11:09 海乐学习 阅读(293) 评论(0) 推荐(0) 编辑
摘要:在html模板页中 //此句代码下面写 阅读全文
posted @ 2011-02-13 17:59 海乐学习 阅读(475) 评论(0) 推荐(0) 编辑
摘要:目的:在editview中一个保存按钮,保存两个模块(两张表)解决方案: 1.在主表模块的editview.php文件最后写 require_once('modules/bw_Consignments/editpanels/editview.php'); //执行子表模块的editview.php文件 2.在子表模块中新建editpanels文件夹 将editvie... 阅读全文
posted @ 2011-02-13 17:58 海乐学习 阅读(659) 评论(0) 推荐(0) 编辑
摘要:在这段代码下(文本框布局的table) 第一行 之间的代码 {MOD.LBL_NAME} {APP.LBL_REQUIRED_SYMBOL} {MOD.LBL_ASSIGNED_USER_ID} 替换为 ... 阅读全文
posted @ 2011-02-13 17:57 海乐学习 阅读(562) 评论(0) 推荐(0) 编辑
摘要:[代码] 阅读全文
posted @ 2011-02-13 17:56 海乐学习 阅读(434) 评论(0) 推荐(0) 编辑
摘要:在所用的主题的路径下 \themes\ClassicSugar\layout_utils.php function get_module_title ($module, $module_title, $show_help) 这个方法中 注释掉下面的代码 //if ($show_help) { // //$the_title .= "&lt;td valign='top' align='right' nowrap style='padding-top:3px; padding-left: 5px;'&gt;"; 阅读全文
posted @ 2011-02-13 17:54 海乐学习 阅读(321) 评论(0) 推荐(0) 编辑
摘要:1.在主表模块中创建子表字段标签 /wwws/language/zh_cn.lang.php 'LBL_ConsignmentItem'=&gt;'提运单明细', 'LBL_ADDROW'=&gt;'新增明细', 'LBL_REMOVEROW'=&gt;'删除', 'LBL_SequenceNumeric' =&gt; '托运货物序号', 'LBL_MarksNumbers' =&gt; '唛头' 阅读全文
posted @ 2011-02-13 17:53 海乐学习 阅读(695) 评论(0) 推荐(0) 编辑
摘要:[代码] 阅读全文
posted @ 2011-02-13 17:51 海乐学习 阅读(236) 评论(0) 推荐(0) 编辑
摘要:在include\SubPanel\SubPanelTiles.php echo " "; global $current_language; $mod_strings = return_module_language($current_language, $thisPanel->get_inst_prop_value('module')); echo get_form_header($... 阅读全文
posted @ 2011-02-13 17:50 海乐学习 阅读(262) 评论(0) 推荐(0) 编辑
摘要:需求:DetailView页面中显示与父表相关的子表ListView并可增加子表内容 解决方案: 1.两个模块 bw_Consignments 提运单信息 父表 bw_ConsignItems 提运单明细 子表 关系: 子表中ConsignmentID字段为父表中的id 2.关系字段... 阅读全文
posted @ 2011-02-13 17:49 海乐学习 阅读(1071) 评论(0) 推荐(0) 编辑
摘要:修改了此文件 include\javascript\popup_parent_helper.js 中的 function open_popup 方法,改动内容如下: windowFeatures = 'width=' + width+ ',height=' + height + ',left= 90 , top=30 ' ++ ',resizable=1,scrollbars=1'; 阅读全文
posted @ 2011-02-13 17:47 海乐学习 阅读(231) 评论(0) 推荐(0) 编辑
摘要:问题原因:问题不在加载模块中,而是在创建模块时。 复制manifest.php文件时,将模板(modules\SimpleMod\manifest.php)更改了。 在模板中'SimpleMod'这种变量是要在创建新模块时改新的。如'SimpleMod'变量应更新为新模块的名称。解决方案:在modules\Builder\BuildModule.php 文件中 1.在$xFileType = ".php"; 语句后写:$xPath = "cache/ModuleBuilder/"; 改变更新目标文件路径 2.将此语名 co 阅读全文
posted @ 2011-02-13 17:45 海乐学习 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-02-13 17:44 海乐学习 阅读(549) 评论(0) 推荐(0) 编辑
摘要:原因:自动生成仅将DetailView.html模板页写好,可DetailView.php页并没有为自定义字段赋值.解决方案: modules\bw_Msg_MT3101s\DetailView.php $xtpl-&gt;assign('DESCRIPTION', nl2br(url2html($focus-&gt;description))); 在此代码后写入下面的代码,用于给自定义字段赋值 $xtpl-&gt;assign('MESSAGE_ID', $focus-&gt;message_id); $xtpl-&gt 阅读全文
posted @ 2011-02-13 17:43 海乐学习 阅读(381) 评论(0) 推荐(0) 编辑
摘要:1.创建字段 \modules\bw_MessageSends\vardefs.php 'send_time' =>array ( 'name' => 'send_time', 'type' => 'datetime', 'dbType' => 'datetime', ... 阅读全文
posted @ 2011-02-13 17:42 海乐学习 阅读(604) 评论(0) 推荐(0) 编辑
摘要:1.创建字段 \modules\bw_MessageSends\vardefs.php 文本字段 'name' =>array ( 'name' => 'name', 'type' => 'varchar', //还有这些类型 name ,phone , enum , datetime ... 阅读全文
posted @ 2011-02-13 17:41 海乐学习 阅读(1648) 评论(0) 推荐(0) 编辑
摘要:(1)创建: \include\language\zh_cn.lang.php 文件中加入下拉列表项的内容 $app_list_strings['account_type_dom1'] = array ( '' => '', 'Analyst' => '分析者', 'Manufacturer' => '生产厂商', 'Other' ... 阅读全文
posted @ 2011-02-13 17:40 海乐学习 阅读(509) 评论(0) 推荐(0) 编辑
摘要:在Home.tpl页中 {if !$lock_homepage} {/if} {$lblLnkHelp} --> 阅读全文
posted @ 2011-02-13 17:38 海乐学习 阅读(456) 评论(0) 推荐(0) 编辑