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


PHP convertGETtoPOST函数代码示例

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


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

示例1: convertGETtoPOST

                    <img src='<?php 
        echo $sImageURL;
        ?>
delete_disabled.png' alt='<?php 
        $clang->eT("You don't have permission to delete this entry.");
        ?>
'/>
                    <?php 
    }
    if (hasFileUploadQuestion($surveyid)) {
        ?>
                    <a href='#' title='<?php 
        $clang->eT("Download files for this entry");
        ?>
' onclick="<?php 
        echo convertGETtoPOST('?action=browse&amp;subaction=all&amp;downloadfile=' . $id . '&amp;sid=' . $surveyid);
        ?>
" >
                        <img src='<?php 
        echo $sImageURL;
        ?>
download.png' alt='<?php 
        $clang->eT("Download files for this entry");
        ?>
' /></a>
                    <?php 
    }
    ?>

                <a href='<?php 
    echo $this->createUrl("admin/export/sa/exportresults/surveyid/{$surveyid}/id/{$id}");
开发者ID:ryu1inaba,项目名称:LimeSurvey,代码行数:31,代码来源:browseidheader_view.php

示例2: getbuttons

 public function getbuttons()
 {
     $url = Yii::app()->createUrl("/admin/questions/sa/view/surveyid/");
     $url .= '/' . $this->sid . '/gid/' . $this->gid . '/qid/' . $this->qid;
     $button = '<a class="btn btn-default" href="' . $url . '" role="button"><span class="glyphicon glyphicon-pencil" ></span></a>';
     $previewUrl = Yii::app()->createUrl("survey/index/action/previewquestion/sid/");
     $previewUrl .= '/' . $this->sid . '/gid/' . $this->gid . '/qid/' . $this->qid;
     $editurl = Yii::app()->createUrl("admin/questions/sa/editquestion/surveyid/{$this->sid}/gid/{$this->gid}/qid/{$this->qid}");
     $button = '<a class="btn btn-default open-preview"  data-toggle="tooltip" title="' . gT("Question preview") . '"  aria-data-url="' . $previewUrl . '" aria-data-sid="' . $this->sid . '" aria-data-gid="' . $this->gid . '" aria-data-qid="' . $this->qid . '" aria-data-language="' . $this->language . '" href="# role="button" ><span class="glyphicon glyphicon-eye-open"  ></span></a> ';
     if (Permission::model()->hasSurveyPermission($this->sid, 'surveycontent', 'update')) {
         $button .= '<a class="btn btn-default"  data-toggle="tooltip" title="' . gT("Edit question") . '" href="' . $editurl . '" role="button"><span class="glyphicon glyphicon-pencil" ></span></a>';
     }
     if (Permission::model()->hasSurveyPermission($this->sid, 'surveycontent', 'read')) {
         $button .= '<a class="btn btn-default"  data-toggle="tooltip" title="' . gT("Question summary") . '" href="' . $url . '" role="button"><span class="glyphicon glyphicon-list-alt" ></span></a>';
     }
     $oSurvey = Survey::model()->findByPk($this->sid);
     if ($oSurvey->active != "Y" && Permission::model()->hasSurveyPermission($this->sid, 'surveycontent', 'delete')) {
         $button .= '<a class="btn btn-default"  data-toggle="tooltip" title="' . gT("Delete") . '" href="#" role="button"
                         onclick="if (confirm(\' ' . gT("Deleting  will also delete any answer options and subquestions it includes. Are you sure you want to continue?", "js") . ' \' )){ ' . convertGETtoPOST(Yii::app()->createUrl("admin/questions/sa/delete/surveyid/{$this->sid}/gid/{$this->gid}/qid/{$this->qid}")) . '} ">
                             <span class="text-danger glyphicon glyphicon-trash"></span>
                         </a>';
     }
     return $button;
 }
开发者ID:sickpig,项目名称:LimeSurvey,代码行数:24,代码来源:Question.php

示例3: tokenify

 /**
  * Generate tokens
  */
 function tokenify($iSurveyId)
 {
     $iSurveyId = sanitize_int($iSurveyId);
     $clang = $this->getController()->lang;
     if (!Permission::model()->hasSurveyPermission($iSurveyId, 'tokens', 'update')) {
         Yii::app()->session['flashmessage'] = $clang->gT("You do not have sufficient rights to access this page.");
         $this->getController()->redirect(array("/admin/survey/sa/view/surveyid/{$iSurveyId}"));
     }
     // CHECK TO SEE IF A TOKEN TABLE EXISTS FOR THIS SURVEY
     $bTokenExists = tableExists('{{tokens_' . $iSurveyId . '}}');
     if (!$bTokenExists) {
         self::_newtokentable($iSurveyId);
     }
     $aData['thissurvey'] = getSurveyInfo($iSurveyId);
     $aData['surveyid'] = $iSurveyId;
     if (!Yii::app()->request->getParam('ok')) {
         $this->_renderWrappedTemplate('token', array('tokenbar', 'message' => array('title' => $clang->gT("Create tokens"), 'message' => $clang->gT("Clicking 'Yes' will generate tokens for all those in this token list that have not been issued one. Continue?") . "<br /><br />\n" . "<input type='submit' value='" . $clang->gT("Yes") . "' onclick=\"" . convertGETtoPOST($this->getController()->createUrl("admin/tokens/sa/tokenify/surveyid/{$iSurveyId}", array('ok' => 'Y'))) . "\" />\n" . "<input type='submit' value='" . $clang->gT("No") . "' onclick=\"window.open('" . $this->getController()->createUrl("admin/tokens/sa/index/surveyid/{$iSurveyId}") . "', '_top')\" />\n" . "<br />\n")), $aData);
     } else {
         //get token length from survey settings
         $newtoken = TokenDynamic::model($iSurveyId)->createTokens($iSurveyId);
         $newtokencount = $newtoken['0'];
         $neededtokencount = $newtoken['1'];
         if ($neededtokencount > $newtokencount) {
             $aData['success'] = false;
             $message = sprintf($clang->ngT('Only %s token has been created.', 'Only %s tokens have been created.', $newtokencount), $newtokencount) . sprintf($clang->ngT('Need %s token.', 'Need %s tokens.', $neededtokencount), $neededtokencount);
         } else {
             $aData['success'] = true;
             $message = sprintf($clang->ngT('%s token has been created.', '%s tokens have been created.', $newtokencount), $newtokencount);
         }
         $this->_renderWrappedTemplate('token', array('tokenbar', 'message' => array('title' => $clang->gT("Create tokens"), 'message' => $message)), $aData);
     }
 }
开发者ID:josetorerobueno,项目名称:test_repo,代码行数:35,代码来源:tokens.php

示例4: convertGETtoPOST

} else {
    ?>
                <img src='<?php 
    echo $imageurl;
    ?>
blank.gif' alt='' width='40' height='20' />
                <?php 
}
if ($ugid && $grpresultcount > 0 && (Yii::app()->session['loginID'] == $grow['owner_id'] || hasGlobalPermission('USER_RIGHT_SUPERADMIN'))) {
    ?>

                <a href='#' onclick="if (confirm('<?php 
    $clang->eT("Are you sure you want to delete this entry?", "js");
    ?>
')) { <?php 
    echo convertGETtoPOST($this->createUrl('admin/usergroups/delete') . "?action=delusergroup&amp;ugid={$ugid}");
    ?>
}">
                    <img src='<?php 
    echo $imageurl;
    ?>
delete.png' alt='<?php 
    $clang->eT("Delete current user group");
    ?>
' name='DeleteUserGroup'  /></a>
                <?php 
} else {
    ?>
                <img src='<?php 
    echo $imageurl;
    ?>
开发者ID:ryu1inaba,项目名称:LimeSurvey,代码行数:31,代码来源:usergroupbar_view.php

示例5: eT

            ?>
' role="button">

                        <span class="glyphicon glyphicon-pencil text-success"></span>
                        <?php 
            eT("Edit this entry");
            ?>
                    </a>
                    <?php 
            if (Permission::model()->hasSurveyPermission($surveyid, 'responses', 'delete') && isset($rlanguage)) {
                ?>
                    <a class="btn btn-default" href='#' role="button" onclick="if (confirm('<?php 
                eT("Are you sure you want to delete this entry?", "js");
                ?>
')) { <?php 
                echo convertGETtoPOST($this->createUrl("admin/dataentry/sa/delete/id/{$id}/sid/{$surveyid}"));
                ?>
}">
                        <span class="glyphicon glyphicon-trash text-warning"></span>
                        <?php 
                eT("Delete this entry");
                ?>
                    </a>
                    <?php 
            }
            ?>

                    <?php 
            if ($bHasFile) {
                ?>
                    <a class="btn btn-default" href='<?php 
开发者ID:BertHankes,项目名称:LimeSurvey,代码行数:31,代码来源:browsemenubar_view.php

示例6: convertGETtoPOST

} else {
    ?>
                <img src='<?php 
    echo $imageurl;
    ?>
blank.gif' alt='' width='40' height='20' />
                <?php 
}
if ($ugid && $grpresultcount > 0 && (Yii::app()->session['loginID'] == $grow['owner_id'] || hasGlobalPermission('USER_RIGHT_SUPERADMIN'))) {
    ?>

                <a href='#' onclick="if (confirm('<?php 
    $clang->eT("Are you sure you want to delete this entry?", "js");
    ?>
')) { <?php 
    echo convertGETtoPOST($this->createUrl('admin/usergroups/sa/delete/ugid/' . $ugid));
    ?>
}">
                    <img src='<?php 
    echo $imageurl;
    ?>
delete.png' alt='<?php 
    $clang->eT("Delete current user group");
    ?>
' name='DeleteUserGroup'  /></a>
                <?php 
} else {
    ?>
                <img src='<?php 
    echo $imageurl;
    ?>
开发者ID:pmaonline,项目名称:limesurvey-quickstart,代码行数:31,代码来源:usergroupbar_view.php

示例7: convertGETtoPOST

            <a href='<?php 
echo $this->createUrl("admin/labels/sa/editlabelset/lid/" . $lid);
?>
'>
                <img src='<?php 
echo $sImageURL;
?>
edit.png' alt='<?php 
$clang->eT("Edit label set");
?>
'  /></a>
            <a href='#' onclick="if (confirm('<?php 
$clang->eT("Do you really want to delete this label set?", "js");
?>
')) { <?php 
echo convertGETtoPOST($this->createUrl("admin/labels/sa/process") . "?action=deletelabelset&amp;lid={$lid}");
?>
}" >
                <img src='<?php 
echo $sImageURL;
?>
delete.png'  alt='<?php 
$clang->eT("Delete label set");
?>
' /></a>
            <img src='<?php 
echo $sImageURL;
?>
separator.gif'  alt='' />
            <a href='<?php 
echo $this->createUrl("admin/export/sa/dumplabel/lid/{$lid}");
开发者ID:jdbaltazar,项目名称:survey-office,代码行数:31,代码来源:labelbar_view.php

示例8: eT

                </a>                  

                <a class="btn btn-default" href="#" role="button" id="save-button" onclick="window.open('<?php echo Yii::app()->getController()->createUrl("admin/statistics/sa/index/surveyid/$surveyid"); ?>', '_top')">
                    <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
                    <?php eT("Clear"); ?>
                </a>                  

            <?php endif;?>            
            <?php if (isset($menu['view'])): ?>
                <?php if ($exist): ?>
                    <a class="btn btn-default" href='<?php echo $this->createUrl("admin/dataentry/sa/editdata/subaction/edit/surveyid/{$surveyid}/id/{$id}/lang/$rlanguage"); ?>' role="button">
                        <img src="<?php echo Yii::app()->getBaseUrl(true);?>/images/lime-icons/328637/edit.png" />
                        <?php eT("Edit this entry"); ?>
                    </a>
                    <?php if (Permission::model()->hasSurveyPermission($surveyid, 'responses', 'delete') && isset($rlanguage)): ?>
                    <a class="btn btn-default" href='#' role="button" onclick="if (confirm('<?php eT("Are you sure you want to delete this entry?", "js"); ?>')) { <?php echo convertGETtoPOST($this->createUrl("admin/dataentry/sa/delete/id/$id/sid/$surveyid")); ?>}">
                        <img src="<?php echo Yii::app()->getBaseUrl(true);?>/images/lime-icons/328637/delete.png" />
                        <?php eT("Delete this entry"); ?>
                    </a>          
                    <?php endif;?>

                    <?php if ($bHasFile): ?>
                    <a class="btn btn-default" href='<?php echo Yii::app()->createUrl("admin/responses",array("sa"=>"actionDownloadfiles","surveyid"=>$surveyid,"sResponseId"=>$id)); ?>' role="button" >
                        <img src="<?php echo Yii::app()->getBaseUrl(true);?>/images/lime-icons/328637/download.png"  class='downloadfile'/>
                        <?php eT("Delete this entry"); ?>
                    </a>          
                    <?php endif;?>   

                    <a class="btn btn-default" href='<?php echo $this->createUrl("admin/export/sa/exportresults/surveyid/$surveyid/id/$id"); ?>' role="button" >
                        <img src="<?php echo Yii::app()->getBaseUrl(true);?>/images/lime-icons/328637/export.png"  class='downloadfile'/>
                        <?php eT("Export this Response"); ?>
开发者ID:jgianpiere,项目名称:lime-survey,代码行数:31,代码来源:browsemenubar_view.php

示例9: participants

                     <li><?php $clang->eT("A deactivated survey is not accessible to participants (only a message appears that they are not permitted to see this survey).");?></li>
                     <li><?php $clang->eT("All questions, groups and parameters are editable again.");?></li>
                     <li><a title='<?php $clang->eT("Export survey results") ?>' href='<?php echo $this->createUrl('admin/export/exportresults/surveyid/'.$surveyid) ?>'>
                         <?php $clang->eT("You should export your responses before deactivating.");?>
                     </li>
                 </ul>
             </td>
         </tr><tr>
             <td>
                 <form method="post" action="<?php echo $this->createUrl("admin/survey/expire/surveyid/".$surveyid);?>">
                     <input type='submit' value='<?php $clang->eT("Expire survey"); ?>'/>
                 </form>
             </td>
             <td>
                 <form method="post" action="<?php echo $this->createUrl("admin/survey/deactivate/surveyid/".$surveyid);?>">
                     <input type='submit' value='<?php $clang->eT("Deactivate survey"); ?>' onclick="<?php echo convertGETtoPOST($this->createUrl("admin/survey/deactivate/".$surveyid)."?action=deactivate&amp;ok=Y&amp;sid=$surveyid"); ?>" />
                     <input type='hidden' value='Y' name='ok' />
                 </form>
             </td>
         </tr>
     </table>
 </div><br />
 <?php }
 else
 { ?>
 <br /><div class='messagebox ui-corner-all'>
     <div class='header ui-widget-header'><?php $clang->eT("Deactivate Survey"); echo "($surveyid)"; ?></div>
     <div class='successheader'><?php $clang->eT("Survey Has Been Deactivated"); ?>
     </div>
     <p>
     <?php $clang->eT("The responses to this survey are no longer available using LimeSurvey."); ?></p>
开发者ID:rawaludin,项目名称:LimeSurvey,代码行数:31,代码来源:deactivateSurvey_view.php

示例10: json_decode_ls

        $index = $fnames[$i]['index'];
        $metadata = $fnames[$i]['metadata'];
        $phparray = json_decode_ls($dtrow[$fnames[$i][0]], true);
        if (isset($phparray[$index])) {
            if ($metadata === "size") {
                ?>
                    <td align='center'><?php 
                echo rawurldecode((int) $phparray[$index][$metadata] . " KB");
                ?>
</td>
                    <?php 
            } else {
                if ($metadata === "name") {
                    ?>
                        <td><a href='#' onclick=" <?php 
                    echo convertGETtoPOST('?action=browse&amp;subaction=all&amp;downloadindividualfile=' . $phparray[$index][$metadata] . '&amp;fieldname=' . $fnames[$i][0] . '&amp;id=' . $dtrow['id'] . '&amp;sid=' . $surveyid);
                    ?>
" ><?php 
                    echo rawurldecode($phparray[$index][$metadata]);
                    ?>
</a></td>
                        <?php 
                } else {
                    ?>
                        <td><?php 
                    echo rawurldecode($phparray[$index][$metadata]);
                    ?>
</td>
                        <?php 
                }
            }
开发者ID:pmaonline,项目名称:limesurvey-quickstart,代码行数:31,代码来源:browseallrow_view.php

示例11: convertGETtoPOST

<div class='menubar'>
    <div class='menubar-title ui-widget-header'>
        <strong><?php $clang->eT("Label Set"); ?>:</strong> <?php echo $row['label_name']; ?>
    </div>
    <div class='menubar-main'>
        <div class='menubar-left'>
            <img src='<?php echo $sImageURL; ?>blank.gif' width='40' height='16' alt='' />
            <img src='<?php echo $sImageURL; ?>separator.gif' alt='' />
            <a href='<?php echo $this->createUrl("admin/labels/editlabelset/lid/".$lid); ?>'>
                <img src='<?php echo $sImageURL; ?>edit.png' alt='<?php $clang->eT("Edit label set"); ?>'  /></a>
            <a href='#' onclick="if (confirm('<?php $clang->eT("Do you really want to delete this label set?","js"); ?>')) { <?php echo convertGETtoPOST($this->createUrl("admin/labels/process")."?action=deletelabelset&amp;lid=$lid"); ?>}" >
                <img src='<?php echo $sImageURL; ?>delete.png'  alt='<?php $clang->eT("Delete label set"); ?>' /></a>
            <img src='<?php echo $sImageURL; ?>separator.gif'  alt='' />
            <a href='<?php echo $this->createUrl("admin/export/dumplabel/lid/$lid");?>'>
                <img src='<?php echo $sImageURL; ?>dumplabel.png' alt='<?php $clang->eT("Export this label set"); ?>' /></a>
        </div>
        <div class='menubar-right'>
            <input type='image' src='<?php echo $sImageURL; ?>close.png' title='<?php $clang->eT("Close Window"); ?>' href="<?php echo $this->createUrl("admin/labels/view"); ?>" />
        </div>
    </div>
</div>
<p style='margin:0;font-size:1px;line-height:1px;height:1px;'>&nbsp;</p>
开发者ID:rawaludin,项目名称:LimeSurvey,代码行数:22,代码来源:labelbar_view.php

示例12: convertGETtoPOST

        if (hasSurveyPermission($surveyid, 'surveyactivation', 'update') || HasSurveyPermission($surveyid, 'tokens','create'))
        {
            $clang->eT("If you initialise tokens for this survey then this survey will only be accessible to users who provide a token either manually or by URL.");
        ?><br /><br />

        <?php
            if ($thissurvey['anonymized'] == 'Y')
            {
                $clang->eT("Note: If you turn on the -Anonymized responses- option for this survey then LimeSurvey will mark your completed tokens only with a 'Y' instead of date/time to ensure the anonymity of your participants.");
            ?><br /><br />
            <?php
            }
            $clang->eT("Do you want to create a token table for this survey?");
        ?>
        <br /><br />
        <input type='submit' value='<?php $clang->eT("Initialise tokens"); ?>' onclick="<?php echo convertGETtoPOST($this->createUrl("admin/tokens/index/surveyid/$surveyid") . "?action=tokens&amp;sid=$surveyid&amp;createtable=Y"); ?>" />
        <input type='submit' value='<?php $clang->eT("No, thanks."); ?>' onclick="window.open('<?php echo$this->createUrl("admin/survey/view/surveyid/$surveyid"); ?>', '_top')" /></div>
    <?php
    }
    else
    {
        $clang->eT("You don't have the permission to activate tokens.");
    ?>
    <input type='submit' value='<?php $clang->eT("Back to main menu"); ?>' onclick="window.open('<?php echo $this->createUrl("admin/survey/view/surveyid/$surveyid"); ?>', '_top')" /></div>

    <?php
    }

    // Do not offer old postgres token tables for restore since these are having an issue with missing index
    if ($tcount > 0 && $databasetype != 'pgsql' && (hasSurveyPermission($surveyid, 'surveyactivation', 'update') || HasSurveyPermission($surveyid, 'tokens','delete')))
    {
开发者ID:rawaludin,项目名称:LimeSurvey,代码行数:31,代码来源:tokenwarning.php

示例13: eT

                    <img src="<?php echo Yii::app()->getBaseUrl(true);?>/images/lime-icons/328637/invite.png" alt='<?php eT("Mail to all Members"); ?>'  />
                    <?php eT("Mail to all Members"); ?>
                </a>                
             <?php endif;?>

            <!-- Edit current user group -->
            <?php if(isset($usergroupbar['edit'])):?>
                <a class="btn btn-default" href="<?php echo $this->createUrl("admin/usergroups/sa/edit/ugid/".$ugid); ?>" role="button">
                    <img src="<?php echo Yii::app()->getBaseUrl(true);?>/images/lime-icons/328637/edit.png" alt='<?php eT("Edit current user group"); ?>'  />
                    <?php eT("Edit current user group"); ?>
                </a>                                
            <?php endif;?>

            <!-- Delete current user group -->
            <?php if(isset($usergroupbar['edit']) &&  (Yii::app()->session['loginID'] == $grow['owner_id'] || Permission::model()->hasGlobalPermission('usergroups','delete'))):?>
                <a class="btn btn-default" href='#' onclick="if (confirm('<?php eT("Are you sure you want to delete this entry?","js"); ?>')) { <?php echo convertGETtoPOST($this->createUrl('admin/usergroups/sa/delete/ugid/'.$ugid)); ?>}">
                    <img src="<?php echo Yii::app()->getBaseUrl(true);?>/images/lime-icons/328637/delete.png" alt='<?php eT("Delete current user group"); ?>'  />
                    <?php eT("Delete current user group"); ?>
                </a>                                
            <?php endif;?>
        </div>
        
        <div class="col-lg-6 col-sm-4 text-right">

            <?php if(isset($usergroupbar['savebutton']['form'])):?>
                <a class="btn btn-default" href="#" role="button" id="save-form-button" aria-data-form-id="<?php echo $usergroupbar['savebutton']['form']; ?>">
                    <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
                    <?php echo $usergroupbar['savebutton']['text'];?>
                </a>
            <?php endif;?>
            
开发者ID:jgianpiere,项目名称:lime-survey,代码行数:30,代码来源:usergroupbar_view.php

示例14: tokenify

 /**
  * Generate tokens
  */
 public function tokenify($iSurveyId)
 {
     $iSurveyId = sanitize_int($iSurveyId);
     if (!Permission::model()->hasSurveyPermission($iSurveyId, 'tokens', 'update')) {
         Yii::app()->session['flashmessage'] = gT("You do not have permission to access this page.");
         $this->getController()->redirect(array("/admin/survey/sa/view/surveyid/{$iSurveyId}"));
     }
     // CHECK TO SEE IF A TOKEN TABLE EXISTS FOR THIS SURVEY
     $bTokenExists = tableExists('{{tokens_' . $iSurveyId . '}}');
     if (!$bTokenExists) {
         self::_newtokentable($iSurveyId);
     }
     $aData['thissurvey'] = getSurveyInfo($iSurveyId);
     $aData['surveyid'] = $iSurveyId;
     $surveyinfo = Survey::model()->findByPk($iSurveyId)->surveyinfo;
     $aData['sidemenu']['state'] = false;
     $aData["surveyinfo"] = $surveyinfo;
     $aData['title_bar']['title'] = $surveyinfo['surveyls_title'] . "(" . gT("ID") . ":" . $iSurveyId . ")";
     $aData['sidemenu']["token_menu"] = TRUE;
     if (!Yii::app()->request->getParam('ok')) {
         $aData['sidemenu']['state'] = false;
         $this->_renderWrappedTemplate('token', array('message' => array('title' => gT("Create tokens"), 'message' => gT("Clicking 'Yes' will generate tokens for all those in this token list that have not been issued one. Continue?") . "<br /><br />\n" . "<input class='btn btn-default btn-lg' type='submit' value='" . gT("Yes") . "' onclick=\"" . convertGETtoPOST($this->getController()->createUrl("admin/tokens/sa/tokenify/surveyid/{$iSurveyId}", array('ok' => 'Y'))) . "\" />\n" . "<input class='btn btn-default  btn-lg' type='submit' value='" . gT("No") . "' onclick=\"window.open('" . $this->getController()->createUrl("admin/tokens/sa/index/surveyid/{$iSurveyId}") . "', '_top')\" />\n" . "<br />\n")), $aData);
     } else {
         //get token length from survey settings
         $newtoken = Token::model($iSurveyId)->generateTokens($iSurveyId);
         $newtokencount = $newtoken['0'];
         $neededtokencount = $newtoken['1'];
         if ($neededtokencount > $newtokencount) {
             $aData['success'] = false;
             $message = ngT('Only {n} token has been created.|Only {n} tokens have been created.', $newtokencount) . ngT('Need {n} token.|Need {n} tokens.', $neededtokencount);
             $message .= '<p><a href="' . App()->createUrl('admin/tokens/sa/index/surveyid/' . $iSurveyId) . '" title="" class="btn btn-default btn-lg">' . gT("Ok") . '</a></p>';
         } else {
             $aData['success'] = true;
             $message = ngT('{n} token has been created.|{n} tokens have been created.', $newtokencount);
             $message .= '<p><a href="' . App()->createUrl('admin/tokens/sa/index/surveyid/' . $iSurveyId) . '" title="" class="btn btn-default btn-lg">' . gT("Ok") . '</a></p>';
         }
         $this->_renderWrappedTemplate('token', array('message' => array('title' => gT("Create tokens"), 'message' => $message)), $aData);
     }
 }
开发者ID:mfavetti,项目名称:LimeSurvey,代码行数:42,代码来源:tokens.php

示例15: convertGETtoPOST

    ?>
                        <input type='submit' value='<?php 
    $clang->eT("Expire survey");
    ?>
'/>
                    </form>
                </td>
                <td>
                    <?php 
    echo CHtml::form(array("admin/survey/sa/deactivate/surveyid/{$surveyid}/"), 'post');
    ?>
                        <input type='submit' value='<?php 
    $clang->eT("Deactivate survey");
    ?>
' onclick="<?php 
    echo convertGETtoPOST($this->createUrl("admin/survey/sa/deactivate/" . $surveyid) . "?action=deactivate&amp;ok=Y&amp;sid={$surveyid}");
    ?>
" />
                        <input type='hidden' value='Y' name='ok' />
                    </form>
                </td>
            </tr>
        </table>
    </div><br />
    <?php 
} else {
    ?>
    <br /><div class='messagebox ui-corner-all'>
        <div class='header ui-widget-header'><?php 
    $clang->eT("Deactivate Survey");
    echo "({$surveyid})";
开发者ID:pmaonline,项目名称:limesurvey-quickstart,代码行数:31,代码来源:deactivateSurvey_view.php


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