<div class="sgcontainer">
    <?php include_once('headerMenu.php') ;?>

	<div id="avanak-content" class="sgrow">
        <div class="setting-page">
			<h2 class="hndle"><span class="yekan">پیام تبریک تولد کاربران</span></h2>
			<div class="inside">
				<div class="main">
					<form id="WCF" method="post" action="#" class="validate rtl">
						<div class="form-field term-slug-wrap clearfix">
							<label for="username">لیست صدا ها</label>
							<?php _e($soundList) ?>
						</div>
						<br>
						<div class="form-field term-slug-wrap clearfix">
							<p class="submit"><span onclick="AvanakSaveSetting()" class="button-primary yekan text-normal pull-left">ذخیره</span></p>
						</div>
						<input type="hidden" name="action" value="avanak_callcound_user_setting">
					</form>
					<div class="userStatusPlace yekan"></div>
				</div>
            </div>
        </div>
    </div>
</div>
<div id="dialog"></div>
<script>
    function AvanakSaveSetting() {
        $.ajax({
            type: "POST",
            url: "/wp-admin/admin-ajax.php",
            data: $("#WCF").serialize(),
            success: function (d) {
                $(".userStatusPlace").html('اطلاعات با موفقیت ذخیره شد');
            }
        });
    }
</script>