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


PHP getEditor函数代码示例

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


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

示例1: foreach

 $editsurvey .= "<div class='header ui-widget-header'>" . $clang->gT("Edit survey text elements") . "</div>\n";
 $editsurvey .= "<form id='addnewsurvey' class='form30' name='addnewsurvey' action='{$scriptname}' method='post'>\n" . '<div id="tabs">';
 $i = 0;
 foreach ($grplangs as $grouplang) {
     // this one is created to get the right default texts fo each language
     $bplang = new limesurvey_lang($grouplang);
     $esquery = "SELECT * FROM " . db_table_name("surveys_languagesettings") . " WHERE surveyls_survey_id={$surveyid} and surveyls_language='{$grouplang}'";
     $esresult = db_execute_assoc($esquery);
     //Checked
     $esrow = $esresult->FetchRow();
     $tab_title[$i] = getLanguageNameFromCode($esrow['surveyls_language'], false);
     if ($esrow['surveyls_language'] == GetBaseLanguageFromSurveyID($surveyid)) {
         $tab_title[$i] .= '(' . $clang->gT("Base language") . ')';
     }
     $esrow = array_map('htmlspecialchars', $esrow);
     $tab_content[$i] = "<ul>\n" . "<li><label for=''>" . $clang->gT("Survey title") . ":</label>\n" . "<input type='text' size='80' name='short_title_" . $esrow['surveyls_language'] . "' value=\"{$esrow['surveyls_title']}\" /></li>\n" . "<li><label for=''>" . $clang->gT("Description:") . "</label>\n" . "<textarea cols='80' rows='15' name='description_" . $esrow['surveyls_language'] . "'>{$esrow['surveyls_description']}</textarea>\n" . getEditor("survey-desc", "description_" . $esrow['surveyls_language'], "[" . $clang->gT("Description:", "js") . "](" . $esrow['surveyls_language'] . ")", $surveyid, '', '', $action) . "</li>\n" . "<li><label for=''>" . $clang->gT("Welcome message:") . "</label>\n" . "<textarea cols='80' rows='15' name='welcome_" . $esrow['surveyls_language'] . "'>{$esrow['surveyls_welcometext']}</textarea>\n" . getEditor("survey-welc", "welcome_" . $esrow['surveyls_language'], "[" . $clang->gT("Welcome:", "js") . "](" . $esrow['surveyls_language'] . ")", $surveyid, '', '', $action) . "</li>\n" . "<li><label for=''>" . $clang->gT("End message:") . "</label>\n" . "<textarea cols='80' rows='15' name='endtext_" . $esrow['surveyls_language'] . "'>{$esrow['surveyls_endtext']}</textarea>\n" . getEditor("survey-endtext", "endtext_" . $esrow['surveyls_language'], "[" . $clang->gT("End message:", "js") . "](" . $esrow['surveyls_language'] . ")", $surveyid, '', '', $action) . "</li>\n" . "<li><label for=''>" . $clang->gT("End URL:") . "</label>\n" . "<input type='text' size='80' name='url_" . $esrow['surveyls_language'] . "' value=\"{$esrow['surveyls_url']}\" />\n" . "</li>" . "<li><label for=''>" . $clang->gT("URL description:") . "</label>\n" . "<input type='text' size='80' name='urldescrip_" . $esrow['surveyls_language'] . "' value=\"{$esrow['surveyls_urldescription']}\" />\n" . "</li>" . "<li><label for=''>" . $clang->gT("Date format:") . "</label>\n" . "<select size='1' name='dateformat_" . $esrow['surveyls_language'] . "'>\n";
     foreach (getDateFormatData() as $index => $dateformatdata) {
         $tab_content[$i] .= "<option value='{$index}'";
         if ($esrow['surveyls_dateformat'] == $index) {
             $tab_content[$i] .= " selected='selected'";
         }
         $tab_content[$i] .= ">" . $dateformatdata['dateformat'] . '</option>';
     }
     $tab_content[$i] .= "</select></li>" . "<li><label for=''>" . $clang->gT("Decimal separator:") . "</label>\n";
     $tab_content[$i] .= "<select size='1' name='numberformat_" . $esrow['surveyls_language'] . "'>\n";
     foreach (getRadixPointData() as $index => $radixptdata) {
         $tab_content[$i] .= "<option value='{$index}'";
         if ($esrow['surveyls_numberformat'] == $index) {
             $tab_content[$i] .= " selected='selected'";
         }
         $tab_content[$i] .= ">" . $radixptdata['desc'] . '</option>';
开发者ID:himanshu12k,项目名称:ce-www,代码行数:31,代码来源:editsurveytextelements.php

示例2: eT

    echo $grouplang;
    ?>
'><?php 
    eT("Description:");
    ?>
</label>
                        <div class="htmleditor">
                            <textarea cols='80' rows='8' id='description_<?php 
    echo $grouplang;
    ?>
' name='description_<?php 
    echo $grouplang;
    ?>
'></textarea>
                            <?php 
    echo getEditor("group-desc", "description_" . $grouplang, "[" . gT("Description:", "js") . "](" . $grouplang . ")", $surveyid, '', '', $action);
    ?>
                        </div>
                    </li>
                    <?php 
    if ($grouplang == $baselang) {
        ?>
                        <li><label for='randomization_group'><?php 
        eT("Randomization group:");
        ?>
</label><input type='text' size='20' maxlength='20' name='randomization_group' id='randomization_group' /></li>
                        <li>
                            <label for='grelevance'><?php 
        eT("Relevance equation:");
        ?>
</label>
开发者ID:wrenchpilot,项目名称:LimeSurvey,代码行数:31,代码来源:addGroup_view.php

示例3: htmlspecialchars

    $clang->eT("Description:");
    ?>
</label>
                        <div class="htmleditor">
                            <textarea cols='70' rows='8' id='description_<?php 
    echo $aGroupData[$i]['language'];
    ?>
' name='description_<?php 
    echo $aGroupData[$i]['language'];
    ?>
'><?php 
    echo htmlspecialchars($aGroupData[$i]['description']);
    ?>
</textarea>
                            <?php 
    echo getEditor("group-desc", "description_" . $aGroupData[$i]['language'], "[" . $clang->gT("Description:", "js") . "](" . $aGroupData[$i]['language'] . ")", $surveyid, $gid, '', $action);
    ?>
                        </div>
                    </li>
                </ul>
                <div style='clear:both'></div>
            </div>
            <?php 
}
?>


    </div>
    <ul>
        <li>
            <label for='randomization_group'><?php 
开发者ID:jdbaltazar,项目名称:survey-office,代码行数:31,代码来源:editGroup_view.php

示例4: createnews

function createnews()
{
    global $context, $txt, $boardurl, $sourcedir;
    checkSession('get');
    //Load main trader template.
    $context['sub_template'] = 'createnews';
    $context['page_title'] = $txt['adkmod_block_add_news'];
    $context['save_action'] = 'savecreatenews';
    //Editor
    getEditor();
    //Compatibility template
    $context['edit'] = array('autor' => '', 'title' => '', 'id' => '');
}
开发者ID:lucasruroken,项目名称:adkportal,代码行数:13,代码来源:Adk-AdminBlocks.php

示例5: if

                                            { ?>
                                            <?php if($row->title) {$sPattern="^([a-zA-Z0-9]*|{$row->title})$";}else{$sPattern="^[a-zA-Z0-9]*$";} ?>
                                            <img class='handle' src='<?php echo $sImageURL; ?>handle.png' alt=''/></td>
                                            <td><input type='hidden' class='oldcode' id='oldcode_<?php echo $row->qid; ?>_<?php echo $row->scale_id; ?>' name='oldcode_<?php echo $row->qid; ?>_<?php echo $row->scale_id; ?>' value="<?php echo $row->title; ?>" />
                                            <input type='text' id='code_<?php echo $row->qid; ?>_<?php echo $row->scale_id; ?>' class='code' name='code_<?php echo $row->qid; ?>_<?php echo $row->scale_id; ?>' value="<?php echo $row->title; ?>" maxlength='20' size='5' pattern='<?php echo $sPattern; ?>' required='required' />

                                            <?php }
                                            else
                                            { ?>
                                        </td><td><?php echo $row->title; ?>

                                            <?php } ?>

                                    </td><td>
                                        <input type='text' size='100' class='answer' id='answer_<?php echo $row->language; ?>_<?php echo $row->qid; ?>_<?php echo $row->scale_id; ?>' name='answer_<?php echo $row->language; ?>_<?php echo $row->qid; ?>_<?php echo $row->scale_id; ?>' placeholder='<?php $clang->eT("Some example subquestion","js") ?>' value="<?php echo $row->question; ?>" onkeypress=" if(event.keyCode==13) { if (event && event.preventDefault) event.preventDefault(); document.getElementById('saveallbtn_<?php echo $anslang; ?>').click(); return false;}" />
                                        <?php echo  getEditor("editanswer","answer_".$row->language."_".$row->qid."_{$row->scale_id}", "[".$clang->gT("Subquestion:", "js")."](".$row->language.")",$surveyid,$gid,$qid,'editanswer'); ?>
                                    </td>
                                    <td>


                                        <?php if ($activated != 'Y' && $first)
                                            { ?>
                                            <img src='<?php echo $sImageURL; ?>addanswer.png' class='btnaddanswer' alt='<?php $clang->eT("Insert a new subquestion after this one") ?>' />
                                            <img src='<?php echo $sImageURL; ?>deleteanswer.png' class='btndelanswer' alt='<?php $clang->eT("Delete this subquestion") ?>' />
                                            <?php } ?>

                                    </td></tr>
                                <?php $position++;
                                }
                                ++$anscount; ?>
                        </tbody></table>
开发者ID:Narasimman,项目名称:UrbanExpansion,代码行数:31,代码来源:subQuestion_view.php

示例6: getEditor

?>
</label>
        <div class='htmleditor'>
        <textarea cols='80' rows='15' id='endtext_<?php 
echo $esrow['surveyls_language'];
?>
' name='endtext_<?php 
echo $esrow['surveyls_language'];
?>
'><?php 
echo $esrow['surveyls_endtext'];
?>
</textarea>
        </div>
        <?php 
echo getEditor("survey-endtext", "endtext_" . $esrow['surveyls_language'], "[" . $clang->gT("End message:", "js") . "](" . $esrow['surveyls_language'] . ")", $surveyid, '', '', $action);
?>
    </li>
    <li><label for='url_<?php 
echo $esrow['surveyls_language'];
?>
'><?php 
$clang->eT("End URL:");
?>
</label>
        <input type='text' size='80' id='url_<?php 
echo $esrow['surveyls_language'];
?>
' name='url_<?php 
echo $esrow['surveyls_language'];
?>
开发者ID:pmaonline,项目名称:limesurvey-quickstart,代码行数:31,代码来源:editLocalSettings_view.php

示例7: GetEmailUseInArray

            <?php 
$templateusein = GetEmailUseInArray();
echo CHtml::dropDownList('template_usein', '', $templateusein, array('ajax' => array('type' => 'POST', 'data' => array('emailUseIN' => 'js:this.value'), 'url' => CController::createUrl('admin/get/sa/fetchtemplatevariable'), 'update' => '#variabledetail')));
?>
        </td>
    </tr>
    <tr>
        <td align="right" style="text-align: right; width: 20%">
            <label for='email_body'><?php 
$clang->eT("Email Body : ");
?>
</label>
        </td>
        <td>
            <textarea rows="3" cols="10" name="email_body" id="email_body"></textarea>
        </td>
        <?php 
echo getEditor("email-body", "email_body", "[" . $clang->gT("Email Body : ", "js") . "]", '125345', '', '', '');
?>
    </tr>
</table>
<div id="variabledetail"></div>

<p style="padding-top: 1em;">
    <input type='submit' value='<?php 
$clang->eT("Save");
?>
' />
    <input type='hidden' name='action' value='addemailbody' />
</p>
</form>
开发者ID:jdbaltazar,项目名称:survey-office,代码行数:31,代码来源:view_addbody.php

示例8: displayTranslateFields

/**
 * displayTranslateFields() Formats and displays translation fields (base language as well as to language)
 * @global $dbprefix, $clang;
 * @param string $surveyid Survey id
 * @param string $gid Group id
 * @param string $qid Question id
 * @param string $type Type of database field that is being translated, e.g. title, question, etc.
 * @param array $amTypeOptions Array containing options associated with each $type
 * @param string $baselangdesc The source translation language, e.g. "English"
 * @param string $tolangdesc The target translation language, e.g. "German"
 * @param string $textfrom The text to be translated in source language
 * @param string $textto The text to be translated in target language
 * @param integer $i Counter
 * @param string $rowfrom Contains current row of database query
 * @param boolean $evenRow True for even rows, false for odd rows
 * @return string $translateoutput
 */
function displayTranslateFields($surveyid, $gid, $qid, $type, $amTypeOptions, $baselangdesc, $tolangdesc, $textfrom, $textto, $i, $rowfrom, $evenRow)
{
    $translateoutput = "";
    if ($evenRow) {
        $translateoutput .= "<tr class=\"odd\">";
    } else {
        $translateoutput .= "<tr class=\"even\">";
    }
    $value1 = "";
    if ($amTypeOptions["id1"] != "") {
        $value1 = $rowfrom[$amTypeOptions["id1"]];
    }
    $value2 = "";
    if ($amTypeOptions["id2"] != "") {
        $value2 = $rowfrom[$amTypeOptions["id2"]];
    }
    // Display text in original language
    // Display text in foreign language. Save a copy in type_oldvalue_i to identify changes before db update
    $translateoutput .= "" . "<td class='_from_' id='{$type}_from_{$i}'>{$textfrom}</td>\n" . "<td>\n";
    $translateoutput .= "<input type='hidden' name='{$type}_id1_{$i}' value='{$value1}' />\n";
    $translateoutput .= "<input type='hidden' name='{$type}_id2_{$i}' value='{$value2}' />\n";
    $nrows = max(calc_nrows($textfrom), calc_nrows($textto));
    $translateoutput .= "<input type='hidden' " . "name='" . $type . "_oldvalue_" . $i . "' " . "value='" . htmlspecialchars($textto, ENT_QUOTES) . "' />\n";
    $translateoutput .= "<textarea cols='80' rows='" . $nrows . "' " . " name='{$type}_newvalue_{$i}' >" . htmlspecialchars($textto) . "</textarea>\n";
    if ($amTypeOptions["HTMLeditorDisplay"] == "Inline") {
        $translateoutput .= "" . getEditor("edit" . $type, $type . "_newvalue_" . $i, htmlspecialchars($textto), $surveyid, $gid, $qid, "translate" . $amTypeOptions["HTMLeditorType"]);
    }
    if ($amTypeOptions["HTMLeditorDisplay"] == "Popup") {
        $translateoutput .= "" . getPopupEditor("edit" . $type, $type . "_newvalue_" . $i, urlencode($amTypeOptions['description']), $surveyid, $gid, $qid, "translate" . $amTypeOptions["HTMLeditorType"]);
    }
    $translateoutput .= "\n</td>\n" . "</tr>\n";
    return $translateoutput;
}
开发者ID:karime7gezly,项目名称:OpenConextApps-LimeSurvey,代码行数:50,代码来源:translate_functions.php

示例9: LiveValidation

										var status=new LiveValidation('status');
										status.add(Validate.Presence);
									 </script>
								</td>
							</tr>
							<tr id="teachersNotesRow">
								<td colspan=2> 
									<b><?php 
                    print _('Description');
                    ?>
</b>
									<?php 
                    $expenseRequestTemplate = getSettingByScope($connection2, "Finance", "expenseRequestTemplate");
                    ?>
									<?php 
                    print getEditor($guid, TRUE, "body", $expenseRequestTemplate, 25, true, false, false);
                    ?>
								</td>
							</tr>
							<tr>
								<td> 
									<b><?php 
                    print _('Total Cost');
                    ?>
 *</b><br/>
									<span style="font-size: 90%">
										<i>
										<?php 
                    if ($_SESSION[$guid]["currency"] != "") {
                        print sprintf(_('Numeric value of the fee in %1$s.'), $_SESSION[$guid]["currency"]);
                    } else {
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:expenseRequest_manage_add.php

示例10: eT

        ?>
'><?php 
        eT("Help:");
        ?>
</label>
                            <div class="htmleditor">
                            <textarea cols='50' rows='4' id='help_<?php 
        echo $addlanguage;
        ?>
' name='help_<?php 
        echo $addlanguage;
        ?>
'></textarea>
                            </div>
                            <?php 
        echo getEditor("question-help", "help_" . $addlanguage, "[" . gT("Help:", "js") . "](" . $addlanguage . ")", $surveyid, $gid, $qid, $action);
        ?>
                        </li></ul>
                </div>
                <?php 
    }
}
?>
        <div id='questionbottom'>
            <ul>
                <li><label for='question_type'><?php 
eT("Question Type:");
?>
</label>
                    <?php 
if ($activated != "Y") {
开发者ID:wrenchpilot,项目名称:LimeSurvey,代码行数:31,代码来源:editQuestion_view.php

示例11: _

											}
										});
									 </script>
								</td>
							</tr>
							<?php 
                }
                ?>
						<tr>
							<td colspan=2 style='padding-top: 15px;'> 
								<b><?php 
                print _('Note');
                ?>
 *</b><br/>
								<?php 
                print getEditor($guid, TRUE, "note", "", 25, true, true, false);
                ?>
							</td>
						</tr>
						<tr>
							<td>
								<span style="font-size: 90%"><i>* <?php 
                print _("denotes a required field");
                ?>
</i></span>
							</td>
							<td class="right">
								<input type="hidden" name="address" value="<?php 
                print $_SESSION[$guid]["address"];
                ?>
">
开发者ID:actcattest001,项目名称:core,代码行数:31,代码来源:student_view_details_notes_add.php

示例12: db_execute_assoc

 if (!$adding) {
     $aqquery = "SELECT * FROM {$dbprefix}questions WHERE sid={$surveyid} AND gid={$gid} AND qid={$qid} AND language != '{$baselang}'";
     $aqresult = db_execute_assoc($aqquery);
     while (!$aqresult->EOF) {
         $aqrow = $aqresult->FetchRow();
         $editquestion .= '<div id="' . $aqrow['language'] . '">';
         $aqrow = array_map('htmlspecialchars', $aqrow);
         $editquestion .= "\t<div class='settingrow'><span class='settingcaption'>" . $clang->gT("Question:") . "</span>\n" . "<span class='settingentry'><textarea cols='50' rows='4' name='question_{$aqrow['language']}'>{$aqrow['question']}</textarea>\n" . getEditor("question-text", "question_" . $aqrow['language'], "[" . $clang->gT("Question:", "js") . "](" . $aqrow['language'] . ")", $surveyid, $gid, $qid, $action) . "\t</span></div>\n" . "\t<div class='settingrow'><span class='settingcaption'>" . $clang->gT("Help:") . "</span>\n" . "<span class='settingentry'><textarea cols='50' rows='4' name='help_{$aqrow['language']}'>{$aqrow['help']}</textarea>\n" . getEditor("question-help", "help_" . $aqrow['language'], "[" . $clang->gT("Help:", "js") . "](" . $aqrow['language'] . ")", $surveyid, $gid, $qid, $action) . "\t</span></div>\n";
         $editquestion .= '</div>';
     }
 } else {
     $addlanguages = GetAdditionalLanguagesFromSurveyID($surveyid);
     foreach ($addlanguages as $addlanguage) {
         $editquestion .= '<div id="' . $addlanguage . '">';
         $editquestion .= '</h2>';
         $editquestion .= "\t<div class='settingrow'><span class='settingcaption'>" . $clang->gT("Question:") . "</span>\n" . "<span class='settingentry'><textarea cols='50' rows='4' name='question_{$addlanguage}'></textarea>\n" . getEditor("question-text", "question_" . $addlanguage, "[" . $clang->gT("Question:", "js") . "](" . $addlanguage . ")", $surveyid, $gid, $qid, $action) . "\t</span></div>\n" . "\t<div class='settingrow'><span class='settingcaption'>" . $clang->gT("Help:") . "</span>\n" . "<span class='settingentry'><textarea cols='50' rows='4' name='help_{$addlanguage}'></textarea>\n" . getEditor("question-help", "help_" . $addlanguage, "[" . $clang->gT("Help:", "js") . "](" . $addlanguage . ")", $surveyid, $gid, $qid, $action) . "\t</span></div>\n" . "\t<div class='settingrow'><span class='settingcaption'>&nbsp;</span>\n" . "<span class='settingentry'>&nbsp;\n" . "\t</span></div>\n";
         $editquestion .= '</div>';
     }
 }
 //question type:
 $editquestion .= "\t<div id='questionbottom'><ul>\n" . "<li><label for='question_type'>" . $clang->gT("Question Type:") . "</label>\n";
 if ($activated != "Y") {
     $editquestion .= "<select id='question_type' style='margin-bottom:5px' name='type' " . ">\n" . getqtypelist($eqrow['type'], 'group') . "</select>\n";
 } else {
     $qtypelist = getqtypelist('', 'array');
     $editquestion .= "{$qtypelist[$eqrow['type']]['description']} - " . $clang->gT("Cannot be changed (survey is active)") . "\n" . "<input type='hidden' name='type' id='question_type' value='{$eqrow['type']}' />\n";
 }
 $editquestion .= "\t</li>\n";
 if (!$adding) {
     $qattributes = questionAttributes();
 } else {
开发者ID:portokallidis,项目名称:Metamorphosis-Meducator,代码行数:31,代码来源:questionhandling.php

示例13: getEditor

                    }
                ?>
                <div id="<?php echo $language; ?>">

                    <ul>
                        <li><label for='from_<?php echo $language; ?>'><?php $clang->eT("From"); ?>:</label>
                            <?php echo CHtml::textField("from_{$language}",$thissurvey[$baselang]['adminname']." <".$thissurvey[$baselang]['adminemail'].">",array('size'=>50)); ?>
                        </li>
                        <li><label for='subject_<?php echo $language; ?>'><?php $clang->eT("Subject"); ?>:</label>
                            <?php echo CHtml::textField("subject_{$language}",$subject,array('size'=>83)); ?>
                        </li>

                        <li><label for='message_<?php echo $language; ?>'><?php $clang->eT("Message"); ?>:</label>
                            <div class="htmleditor">
                                <?php echo CHtml::textArea("message_{$language}",$textarea,array('cols'=>80,'rows'=>20)); ?>
                                <?php echo getEditor("email-inv", "message_$language", "[" . $clang->gT("Invitation email:", "js") . "](" . $language . ")", $surveyid, '', '', "tokens"); ?>
                            </div>
                        </li>
                    </ul></div>
                <?php } ?>

            <p>
                <label for='bypassbademails'><?php $clang->eT("Bypass token with failing email addresses"); ?>:</label>
                <?php echo CHtml::dropDownList('bypassbademails', 'Y',array("Y"=>gT("Yes"),"N"=>gT("No"))); ?>
            </p>
            <p>
                <input type='submit' value='<?php $clang->eT("Send Invitations"); ?>' />
                <input type='hidden' name='ok' value='absolutely' />
                <input type='hidden' name='subaction' value='email' />
                <?php if (!empty($tokenids)) { ?>
                    <input type='hidden' name='tokenids' value='<?php echo implode('|', (array) $tokenids); ?>' />
开发者ID:ravindrakhokharia,项目名称:LimeSurvey,代码行数:31,代码来源:email.php

示例14: htmlspecialchars

</label>
        <textarea cols='80' rows='20' name='email_<?php 
echo $tab;
?>
_<?php 
echo $grouplang;
?>
' id='<?php 
echo "email_{$tab}_{$grouplang}";
?>
'><?php 
echo htmlspecialchars($esrow->{$details['field']['body']});
?>
</textarea>
       <?php 
echo getEditor("email-{$tab}", "email_{$tab}_{$grouplang}", "", $surveyid, '', '', 'editemailtemplates');
?>
        <input 
            type='button' 
            value='<?php 
$clang->eT("Reset");
?>
' 
            class="fillin"
            data-target="<?php 
echo "email_{$tab}_{$grouplang}";
?>
"
            data-value="<?php 
echo htmlspecialchars(conditionalNewlineToBreak($details['default']['body'], $ishtml), ENT_QUOTES);
?>
开发者ID:jdbaltazar,项目名称:survey-office,代码行数:31,代码来源:email_language_template_tab.php

示例15: Replacefields

     }
     $tokenoutput .= "</h2><ul>\n" . "<li><label for='from_{$language}' >" . $clang->gT("From") . ":</label>\n" . "<input type='text' size='50' name='from_{$language}' id='from_{$language}' value=\"{$thissurvey['adminname']} <{$thissurvey['adminemail']}>\" /></li>\n" . "<li><label for='subject_{$language}' >" . $clang->gT("Subject") . ":</label>\n";
     $fieldsarray["{ADMINNAME}"] = $thissurvey['adminname'];
     $fieldsarray["{ADMINEMAIL}"] = $thissurvey['adminemail'];
     $fieldsarray["{SURVEYNAME}"] = $thissurvey['name'];
     $fieldsarray["{SURVEYDESCRIPTION}"] = $thissurvey['description'];
     $fieldsarray["{EXPIRY}"] = $thissurvey["expiry"];
     $subject = Replacefields($thissurvey['email_remind_subj'], $fieldsarray);
     $textarea = Replacefields($thissurvey['email_remind'], $fieldsarray);
     if ($ishtml !== true) {
         $textarea = str_replace(array('<x>', '</x>'), array(''), $textarea);
     }
     $tokenoutput .= "<input type='text' size='83' id='subject_{$language}' name='subject_{$language}' value=\"{$subject}\" /></li>\n";
     $tokenoutput .= "\t<li>\n" . "<label for='message_{$language}'>" . $clang->gT("Message") . ":</label>\n" . "<textarea name='message_{$language}' id='message_{$language}' rows='20' cols='80' >\n";
     $tokenoutput .= htmlspecialchars($textarea);
     $tokenoutput .= "</textarea>\n" . getEditor("email-rem", "message_{$language}", "[" . $clang->gT("Reminder Email:", "js") . "](" . $language . ")", $surveyid, '', '', $action) . "</li>\n" . "</ul></div>";
 }
 $tokenoutput .= "</div><ul>\n";
 if (isset($tokenids)) {
     $tokenoutput .= "\t<li>\n" . "<label>" . $clang->gT("Send reminder to token ID(s):") . "</label>\n" . implode(", ", $tokenids) . "</li>\n";
 } elseif (!isset($tokenid)) {
     $tokenoutput .= "<li><label>" . $clang->gT("Sending to:") . "</label>" . $clang->gT("All token entries to whom a reminder email would apply") . "</li>";
     $tokenoutput .= "\t<li>\n" . "<label for='last_tid'>" . $clang->gT("Start at Token ID:") . "</label>\n" . "<input type='text' size='5' id='last_tid' name='last_tid' />\n" . "\t</li>\n";
 } elseif (isset($tokenid)) {
     $tokenoutput .= "\t<li>\n" . "<label>" . $clang->gT("Send reminder to token ID(s):") . "</label>\n" . "{$tokenid}</li>\n";
 }
 $tokenoutput .= "<li><label for='bypassbademails'>\n" . $clang->gT("Bypass token with failing email addresses") . ":</label>\n" . "<select id='bypassbademails' name='bypassbademails'>\n" . "\t<option value='Y'>" . $clang->gT("Yes") . "</option>\n" . "\t<option value='N'>" . $clang->gT("No") . "</option>\n" . "</select></li>\n" . "<li><label for='minreminderdelay'>\n" . $clang->gT("Min days between reminders") . ":</label>\n" . "<input type='text' value='' name='minreminderdelay' id='minreminderdelay' /></li>\n" . "<li><label for='maxremindercount'>\n" . $clang->gT("Max reminders") . ":</label>\n" . "<input type='text' value='' name='maxremindercount' id='maxremindercount' /></li>\n" . "</ul><p>\n" . "<input type='submit' value='" . $clang->gT("Send Reminders") . "' />\n" . "\t<input type='hidden' name='ok' value='absolutely' />\n" . "\t<input type='hidden' name='sid' value='{$_GET['sid']}' />\n" . "\t<input type='hidden' name='subaction' value='remind' />\n";
 if (isset($tokenid)) {
     $tokenoutput .= "\t<input type='hidden' name='tid' value='{$tokenid}' />\n";
 }
 if (isset($tokenids)) {
开发者ID:karime7gezly,项目名称:OpenConextApps-LimeSurvey,代码行数:31,代码来源:tokens.php


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