<td>
<input class="button" type="button" name="btnFuseAction" value="<?php echo $AppUI->_('save');?>" onClick="submitIt(document.editFrm);" />
</td>菜鸟我想知道提交的内容,应该去哪里找?
求指点
onClick="submitIt(document.editFrm)

解决方案 »

  1.   

    你不写出关键的script函数submitIt内容谁能知道?
      

  2.   


    function submitIt(form){ if (form.task_name.value.length < 3) {
    alert( task_name_msg );
    form.task_name.focus();
    return false;
    } // Check the sub forms
    for (var i = 0; i < subForm.length; i++) {
    if (!subForm[i].check())
    return false;
    // Save the subform, this may involve seeding this form
    // with data
    subForm[i].save();
    } form.submit();
    }我现在就是不知道去哪里找 刚找到这个
    这个其实是开源软件dotproject的一个功能 更新任务会发邮件,我现在想要他邮件的内容
    所以要找到这个提交按钮的内容
      

  3.   


    function submitIt(form){ if (form.task_name.value.length < 3) {
    alert( task_name_msg );
    form.task_name.focus();
    return false;
    } // Check the sub forms
    for (var i = 0; i < subForm.length; i++) {
    if (!subForm[i].check())
    return false;
    // Save the subform, this may involve seeding this form
    // with data
    subForm[i].save();
    } form.submit();
    }
    我现在就是不知道去哪里找 刚找到这个
    这个其实是开源软件dotproject的一个功能 更新任务会发邮件,我现在想要他邮件的内容
    所以要找到这个提交按钮的内容
      

  4.   

    在 html 代码部分查找 form 标记
      

  5.   


    <form name="datesFrm" action="?m=tasks&a=addedit&task_project=<?php echo $task_project;?>" method="post">
    <input name="dosql" type="hidden" value="do_task_aed" />
    <input name="task_id" type="hidden" value="<?php echo $task_id;?>" />
    <input name="sub_form" type="hidden" value="1" />
    <table width="100%" border="0" cellpadding="4" cellspacing="0" class="std">
    <?php
    if($can_edit_time_information){
    ?>
    <tr>
    <td align="right" nowrap="nowrap"><?php echo $AppUI->_( 'Start Date' );?></td>
    <td nowrap="nowrap">
    <input type="hidden" name="task_start_date" id="task_start_date" value="<?php echo $start_date ? $start_date->format( FMT_TIMESTAMP_DATE ) : "" ;?>" />
    <input type="text" name="start_date" id="start_date" value="<?php echo $start_date ? $start_date->format( $df ) : "" ;?>" class="text" disabled="disabled" />
    <a href="#" onClick="popCalendar(document.datesFrm.start_date)">
    <img src="./images/calendar.gif" width="24" height="12" alt="<?php echo $AppUI->_('Calendar');?>" border="0">
    </a>
    </td>
    <td>
    <table><tr>

    <?php
    echo "<td>" . arraySelect($hours, "start_hour",'size="1" onchange="setAMPM(this)" class="text"', $start_date ? $start_date->getHour() : $start ) . "</td><td>" . " : " . "</td>";
    echo "<td>" . arraySelect($minutes, "start_minute",'size="1" class="text"', $start_date ? $start_date->getMinute() : "0" ) . "</td>";
    if ( stristr($AppUI->getPref('TIMEFORMAT'), "%p") ) {
    echo '<td><input type="text" name="start_hour_ampm" id="start_hour_ampm" value="' . ( $start_date ? $start_date->getAMPM() : ( $start > 11 ? "pm" : "am" ) ) . '" disabled="disabled" class="text" size="2" /></td>';
    }
    ?>
    </tr></table>
    </td>
    </tr>
    <tr>
    <td align="right" nowrap="nowrap"><?php echo $AppUI->_( 'Finish Date' );?></td>
    <td nowrap="nowrap">
    <input type="hidden" name="task_end_date" id="task_end_date" value="<?php echo $end_date ? $end_date->format( FMT_TIMESTAMP_DATE ) : '';?>" />
    <input type="text" name="end_date" id="end_date" value="<?php echo $end_date ? $end_date->format( $df ) : '';?>" class="text" disabled="disabled" />
    <a href="#" onClick="popCalendar(document.datesFrm.end_date)">
    <img src="./images/calendar.gif" width="24" height="12" alt="<?php echo $AppUI->_('Calendar');?>" border="0">
    </a>
    </td>
            <td>
    <table><tr>
    <?php
    echo "<td>" . arraySelect($hours, "end_hour",'size="1" onchange="setAMPM(this)" class="text"', $end_date ? $end_date->getHour() : $end ) . "</td><td>" . " : " . "</td>";
    echo "<td>" .arraySelect($minutes, "end_minute",'size="1" class="text"', $end_date ? $end_date->getMinute() : "00" ) . "</td>";
    if ( stristr($AppUI->getPref('TIMEFORMAT'), "%p") ) {
    echo '<td><input type="text" name="end_hour_ampm" id="end_hour_ampm" value="' . ( $end_date ? $end_date->getAMPM() : ( $end > 11 ? "pm" : "am" ) ) . '" disabled="disabled" class="text" size="2" /></td>';
    }
    ?>
    </tr></table>
    </td>
    </tr>
    <tr>
    <td align="right" nowrap="nowrap"><?php echo $AppUI->_( 'Expected Duration' );?>:</td>
    <td nowrap="nowrap">
    <input type="text" class="text" name="task_duration" maxlength="8" size="6" value="<?php echo isset($obj->task_duration) ? $obj->task_duration : 1;?>" />
    <?php
    echo arraySelect( $durnTypes, 'task_duration_type', 'class="text"', $obj->task_duration_type, true );
    ?>
    </td>
    <td><?php echo $AppUI->_('Daily Working Hours').': '.$dPconfig['daily_working_hours']; ?></td></tr>
    <tr>
    <td align="right" nowrap="nowrap"><?php echo $AppUI->_( 'Calculate' );?>:</td>
    <td nowrap="nowrap">
    <input type="button" value="<?php echo $AppUI->_('Duration');?>" onclick="calcDuration(document.datesFrm)" class="button" />
    <input type="button" value="<?php echo $AppUI->_('Finish Date');?>" onclick="calcFinish(document.datesFrm)" class="button" />
    </td>
    <td><?php echo $AppUI->_('Working Days').': '.$cwd_hr; ?></td>
    </tr>
            <?php
            } else {  
            ?>
    <tr>
            <td colspan='2'>
                    <?php echo $AppUI->_("Only the task owner, project owner, or system administrator is able to edit time related information."); ?>
            </td>
    </tr>
            <?php
            }// end of can_edit_time_information
            ?>
    </table>
    </form>
    是这个吗。这个软件有很多本php大侠 你要方便帮我看下 我传给你
      

  6.   


    <form name="editFrm" action="?m=tasks&project_id=<?php echo $task_project;?>" method="post">
    <input name="dosql" type="hidden" value="do_task_aed" />
    <input name="task_id" type="hidden" value="<?php echo $task_id;?>" />
    <input name="task_project" type="hidden" value="<?php echo $task_project;?>" />
    <input name='task_contacts' id='task_contacts' type='hidden' value="<?php echo $obj->task_contacts; ?>" />
    <tr>
    <td colspan="2" style="border: outset #eeeeee 1px;background-color:#<?php echo $project->project_color_identifier;?>" >
    <font color="<?php echo bestColor( $project->project_color_identifier ); ?>">
    <strong><?php echo $AppUI->_('Project');?>: <?php echo @$project->project_name;?></strong>
    </font>
    </td>
    </tr><tr valign="top" width="50%">
    <td>
    <?php echo $AppUI->_( 'Task Name' );?> *
    <br /><input type="text" class="text" name="task_name" value="<?php echo dPformSafe( $obj->task_name );?>" size="40" maxlength="255" />
    </td>
    <td>
    <table cellspacing="0" cellpadding="2" border="0" width="100%">
    <tr>
    <td align="right" nowrap="nowrap"><?php echo $AppUI->_( 'Status' );?></td>
    <td>
    <?php echo arraySelect( $status, 'task_status', 'size="1" class="text"', $obj->task_status, true );?>
    </td> <td align="right" nowrap="nowrap"><?php echo $AppUI->_( 'Priority' );?> *</td>
    <td nowrap>
    <?php echo arraySelect( $priority, 'task_priority', 'size="1" class="text"', $obj->task_priority, true );?>
    </td>
    </tr>
    <tr>
    <td align="right" nowrap="nowrap"><?php echo $AppUI->_( 'Progress' );?></td>
    <td>
    <?php echo arraySelect( $percent, 'task_percent_complete', 'size="1" class="text"', $obj->task_percent_complete ) . '%';?>
    </td> <td align="right" nowrap="nowrap"><?php echo $AppUI->_( 'Milestone' );?>?</td>
    <td>
    <input type="checkbox" value=1 name="task_milestone" <?php if($obj->task_milestone){?>checked<?php }?> />
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table><table border="0" cellspacing="0" cellpadding="3" width="100%">
    <tr>
    <td height="40" width="35%">
    * <?php echo $AppUI->_( 'requiredField' );?>
    </td>
    <td height="40" width="30%">&nbsp;</td>
    <td  height="40" width="35%" align="right">
    <table>
    <tr>
    <td>
    <input class="button" type="button" name="cancel" value="<?php echo $AppUI->_('cancel');?>" onClick="if(confirm('<?php echo $AppUI->_('taskCancel', UI_OUTPUT_JS);?>')){location.href = '?<?php echo $AppUI->getPlace();?>';}" />
    </td>
    <td>
    <input class="button" type="button" name="btnFuseAction" value="<?php echo $AppUI->_('save');?>" onClick="submitIt(document.editFrm);" />
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </form>
    上面错了 应该是这个。。