Example #1
0
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2"><input type="button" class="btn btn-primary" value="Save chenges" onclick="whenSaveBasic()" /></td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </form>
                            <div class="alert <? if ($context['which'] == 'basic' && $context['result'] === 1) echo 'alert-success '; else echo 'alert-danger '; if ($context['which'] == 'basic' && $context['result']) echo 'alert-visible'; ?>" id="error">
                                <?  if ($context['which'] == 'basic') echo $context['msg']; ?>
                            </div>
                        </div>

                        <div class="tab-pane <? if ($context['which'] == 'password') echo 'active'; ?>" id="password-div">
                            <form action="<?php 
echo sr_home_path();
?>
/d/main/profile/" name="password_form" id="password_form" method="post">
                                <input type="hidden" id="which" name="which" value="password" />
                                <fieldset>
                                    <legend>Change Password</legend>
                                    <table>
                                        <tr>
                                            <td class="sep"><input type="password" class="form-control" id="old_password" name="old_password" placeholder="Old Password" /></td>
                                        </tr>
                                        <tr>
                                            <td><input type="password" class="form-control" id="new_password" name="new_password" placeholder="New Password" /></td>
                                        </tr>
                                        <tr>
                                            <td class="sep"><input type="password" class="form-control"id="repeat_password" name="repeat_password" placeholder="Repeat Password" /></td>
                                        </tr>
Example #2
0
function sr_logo_lg()
{
    global $sr_logo_lg;
    return sr_home_path() . $sr_logo_lg;
}