Skip to content

Conversation

Ibrahem775
Copy link

<title>تحويل الرصيد العالمي</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f0f0f0; } .container { max-width: 500px; margin: 50px auto; padding: 20px; background-color: #fff; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin: 15px 0 5px; } input, select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; } button { width: 100%; padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #45a049; } </style>

تحويل الرصيد العالمي

الاسم:
        <label for="phone">رقم الهاتف:</label>
        <input type="text" id="phone" name="phone" required>

        <label for="country">اختر البلد:</label>
        <select id="country" name="country" required>
            <option value="السعودية">السعودية</option>
            <option value="مصر">مصر</option>
            <option value="الإمارات">الإمارات</option>
            <option value="أوكرانيا">أوكرانيا</option> <!-- تمت إضافة أوكرانيا -->
            <!-- إضافة المزيد من البلدان -->
        </select>

        <label for="lineType">نوع الخط:</label>
        <select id="lineType" name="lineType" required>
            <option value="GSM">GSM</option>
            <option value="CDMA">CDMA</option>
            <!-- إضافة المزيد إذا لزم الأمر -->
        </select>

        <label for="amount">الكمية المطلوبة:</label>
        <input type="number" id="amount" name="amount" required>

        <button type="submit">إرسال</button>
    </form>
</div>

<script>
    document.getElementById('rechargeForm').addEventListener('submit', function(event) {
        event.preventDefault();

        const name = document.getElementById('name').value;
        const phone = document.getElementById('phone').value;
        const country = document.getElementById('country').value;
        const lineType = document.getElementById('lineType').value;
        const amount = document.getElementById('amount').value;

        const message = `الاسم: ${name}%0Aرقم الهاتف: ${phone}%0Aالبلد: ${country}%0Aنوع الخط: ${lineType}%0Aالكمية المطلوبة: ${amount}`;
        const whatsappLink = `https://wa.me/905365919528?text=${message}`;

        window.location.href = whatsappLink;
    });
</script>

<!DOCTYPE html>
<html lang="ar">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>تحويل الرصيد العالمي</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f0f0f0; }
        .container { max-width: 500px; margin: 50px auto; padding: 20px; background-color: #fff; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
        label { display: block; margin: 15px 0 5px; }
        input, select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; }
        button { width: 100%; padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; }
        button:hover { background-color: #45a049; }
    </style>
</head>
<body>
    <div class="container">
        <h2>تحويل الرصيد العالمي</h2>
        <form id="rechargeForm">
            <label for="name">الاسم:</label>
            <input type="text" id="name" name="name" required>
            
            <label for="phone">رقم الهاتف:</label>
            <input type="text" id="phone" name="phone" required>

            <label for="country">اختر البلد:</label>
            <select id="country" name="country" required>
                <option value="السعودية">السعودية</option>
                <option value="مصر">مصر</option>
                <option value="الإمارات">الإمارات</option>
                <option value="أوكرانيا">أوكرانيا</option> <!-- تمت إضافة أوكرانيا -->
                <!-- إضافة المزيد من البلدان -->
            </select>

            <label for="lineType">نوع الخط:</label>
            <select id="lineType" name="lineType" required>
                <option value="GSM">GSM</option>
                <option value="CDMA">CDMA</option>
                <!-- إضافة المزيد إذا لزم الأمر -->
            </select>

            <label for="amount">الكمية المطلوبة:</label>
            <input type="number" id="amount" name="amount" required>

            <button type="submit">إرسال</button>
        </form>
    </div>

    <script>
        document.getElementById('rechargeForm').addEventListener('submit', function(event) {
            event.preventDefault();

            const name = document.getElementById('name').value;
            const phone = document.getElementById('phone').value;
            const country = document.getElementById('country').value;
            const lineType = document.getElementById('lineType').value;
            const amount = document.getElementById('amount').value;

            const message = `الاسم: ${name}%0Aرقم الهاتف: ${phone}%0Aالبلد: ${country}%0Aنوع الخط: ${lineType}%0Aالكمية المطلوبة: ${amount}`;
            const whatsappLink = `https://wa.me/905365919528?text=${message}`;

            window.location.href = whatsappLink;
        });
    </script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant